IF formulas working in all but one cell/column

scrayne

New Member
Joined
Nov 28, 2018
Messages
1
Hi, I have a budget template that has IF statements to exclude costs bases on the max allowed ($25,000) and the previous years' totals. I have 4 groups of these per year for 6 years and all the IF statements appear to be set up the same and work in all but one of the groups and I can't figure out why!

Basically my problem is when I get to the 4th year and I want the calculation to take into account the totals from the previous three as well as the 4th and whether or not we have exceeded $25,000.

As I said, I have 4 sections of these and all three other sections work but this one and I've already checked the cell formatting and it's exactly the same for all these.

=IF('Yrs 1-3'!L53+'Yrs 1-3'!Q53+'Yrs 1-3'!G53+'Yrs 4-6'!G53>25000,G53,IF(('Yrs 1-3'!G53+'Yrs 1-3'!L53+'Yrs 1-3'!Q53+'Yrs 4-6'!G53)<25000,0,(('Yrs 1-3'!G53+'Yrs 1-3'!L53+'Yrs 1-3'!Q53+'Yrs 4-6'!G53)-25000)))

=IF(('Yrs 1-3'!G53-'Yrs 1-3'!L53-'Yrs 1-3'!Q53-G53)<25000,G53,G53-G54)

This is the calculation directly above that works;
=IF('Yrs 1-3'!L48+'Yrs 1-3'!Q48+'Yrs 1-3'!G48+G48>25000,G48,IF(('Yrs 1-3'!G48+'Yrs 1-3'!L48+'Yrs 1-3'!Q48+'Yrs 4-6'!G48)<25000,0,(('Yrs 1-3'!G48+'Yrs 1-3'!L48+'Yrs 1-3'!Q48+'Yrs 4-6'!G48)-25000)))

=IF(('Yrs 1-3'!G48-'Yrs 1-3'!L48-'Yrs 1-3'!Q48-G48)<25000,G48,G48-G49)

Any help is GREATLY appreciated!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Just from glancing over the formula would it be something to do with this?

=IF('Yrs 1-3'!L53+'Yrs 1-3'!Q53+'Yrs 1-3'!G53+'Yrs 4-6'!G53>25000,G53,IF(('Yrs 1-3'!G53+'Yrs 1-3'!L53+'Yrs 1-3'!Q53+'Yrs 4-6'!G53)<25000,0,(('Yrs 1-3'!G53+'Yrs 1-3'!L53+'Yrs 1-3'!Q53+'Yrs 4-6'!G53)-25000)))

This part differs in the working formula compared to the non working one.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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