Formula Assistance Please - IF statement the right formula?

mins78

New Member
Joined
Jan 31, 2018
Messages
6
Hi,

I have made a calculator which has multiple variables based on whether someone is Single or Married (defacto goes under same heading), and number of kids. Hence if someone is single with one child it would be a different outcome (cell number) than if they were married with 2 kids.

Then just to complicate things even more, if someone has more than 3 kids in both single and married cases I would need them to take the value from cell "x - being the additional child expense" and multiply by number of kids over 3... so eg:

Married couple 5 kids
Direct to Cell "a" which has value of $2000 based on a married couple with 3 kids then PLUS cell "x with value of say $300" times by 2 extra kids. = so total should be $2600.

It needs to work for all variables including no kids and up to say 6 -7 kids

I hope this makes sense.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Something like this?


Book1
ABCDEF
1StatusNo children1 Child2 Children3 ChildrenAdditional child expense
2Single60080012001600200
3Married800100015002000300
4
5
6
7StatusSingle
8# Children7
9Expense2400
Sheet1
Cell Formulas
RangeFormula
B9=INDEX($B$2:$E$3,MATCH($B$7,$A$2:$A$3,0),MIN($B$8,3)+1)+IF($B$8>3,INDEX($F$2:$F$3,MATCH($B$7,$A$2:$A$3,0))*($B$8-3),0)


WBD
 
Upvote 0
This is great but wow I was kinda far off. I thought I was not too bad at excel but this has totally confused me. I have no idea how to use this information within the current spreadsheet I have made. Essentially I have a master sheet where I enter the income in the correct sections, choose married/single and the number of kids. Then I have a separate page in the background for each lender.

Each lenders page pulls the information re marital status and number of kids to that page but how do I reference the above to use the information in the relevant cell?

I can copy and paste the table and formula etc but for it to automatically pick up the number of kids and marital status. I have NEVER used "Index" before which is why I am so confused. Not sure what I would need to change in the formula to make it work. :)

Thanks for the awesome reply and help :)
 
Upvote 0
Just to Clarify on each lender sheet the marital status pulls across into cell I3 (same for all pages). The number of kids pulls across into cell D21 on each sheet.
 
Upvote 0
OK. Let's assume you put the expenditure table on a sheet call "Expenditure" like this:


Book1
ABCDEF
1StatusNo children1 Child2 Children3 ChildrenAdditional child expense
2Single60080012001600200
3Married800100015002000300
Expenditure


Now, if marital status is in I3 and number of kids is in D21 the formula becomes:

Code:
=INDEX(Expenditure!$B$2:$E$3,MATCH($I$3,Expenditure!$A$2:$A$3,0),MIN($D$21,3)+1)+IF($D$21>3,INDEX(Expenditure!$F$2:$F$3,MATCH($I$3,Expenditure!$A$2:$A$3,0))*($D$21-3),0)

The INDEX/MATCH formulas are pretty standard but in this case you could swap for VLOOKUP if necessary:

Code:
=VLOOKUP($I$3,Expenditure!$A$2:$F$3,MIN($D$21,3)+2,FALSE)+IF($D$21>3,VLOOKUP($I$3,Expenditure!$A$2:$F$3,6,FALSE)*($D$21-3),0)

WBD
 
Upvote 0
Is there a way that I could put the expenditure table on each page and reference back? Only because each lender has different figures they use. Hence it won't work using just one sheet "expenditure".

I was thinking if could put the table onto the lenders sheet at the same cell and this way when the lenders update their expense guidelines, I just need to update the individual lenders table as per what you have above.

If this works I would create your table starting at cell C33 for "Status" Cell and go 3 down to c35 and across to H33/H35. This would be perfect!
 
Upvote 0
OK. Then:

Code:
=VLOOKUP($I$3,$C$34:$H$35,MIN($D$21,3)+2,FALSE)+IF($D$21>3,VLOOKUP($I$3,$C$34:$H$35,6,FALSE)*($D$21-3),0)

WBD
 
Upvote 0
Thanks for your help WBD but not working :(

It changes the value for Single vs married but then doesn't change the figure based on the number of kids entered. :(
 
Upvote 0
Hi WMB,

I fiddled around with it. For some reason it had changed the D reference to 22 instead of 21. Changed it back and it works perfectly. You are the ultimate Excel wizard. Thank you so much :)
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top