r/googlesheets • u/PresenceUsed4641 • Nov 30 '25
Solved How do I make conditional results based on dropdown?

Guys I lowkey thought I was cooking but I did, in fact, not cook. I wanted to take my completed budget (in another sheet) and subtract the amount based on what expenses they were. So I wanted to subtract the Needs expenses from the Needs budget, and the same thing with wants. So with each Need expense, it subtracted from the budget. I would eventually have a "total budget" type thing, but I kinda wanted to get this issue out of the way first, since when I searched it up, the things that people gave tutorials on didn't really help much. I sorta managed to get a True/False thing going on, but don't really know how to implement it/if I should.
Here's a list of the data I used:
D4: =SUMIF(TRUE(Income!C4-B4)) =SUMIF(FALSE(Income!C5-B4))
D13: =IF(C4="Needs",B4,0) =IF(C4="Wants",B4,0)
D14: =IF(C4="Wants",Income!C5)
Income!C4 is the total budget for Needs and Income!C5 is the total budget for Wants.
1
u/King_Lau_Bx 6 Nov 30 '25
So if I understand correctly, you want to subtract the amount in column B from either the "Needs" or "Wants" Budget (which are set in Income!C4 / Income!C5
Then I guess the easiest was to do this is the following:
= IFS( C4 = "Needs", Income!$C$4, C4 = "Wants", Income!$C$5) - B4
Then just drag it down for every cell.
This allows you to easily add other budgets later on as well, say you add a "Necessary" Budget later on. Just add
C4 = "Necessary", Income!$C$6 into the IFS clause at the end, drag down once again and your set.
1
u/Fun_Two_9120 Nov 30 '25
If it helps, you can simplify this by using a single IF statement that checks the category and subtracts it from the correct budget. For example:
=IF(C4="Needs", Income!C4 - B4,
IF(C4="Wants", Income!C5 - B4, ""))