Need Help Consoldating two IF formulas into 1

atvsource

Board Regular
Joined
Feb 26, 2009
Messages
86
I need help consolidating two IF formulas into one formula.

Here are the two formulas.

F1
Code:
=IF(TablesData!G3=FALSE," ",IF(G$20=1,Analysis!F4,IF(G$20=5,Analysis!J4,IF(G$20=10,Analysis!N4))))
F2
Code:
=IF(TablesData!O7=TRUE," ",Analysis!Q4)
Here's what the two formulas do.
F1 take the TablesData!G3=FALSE and checks to see if that is FALSE, controlled by a form check box, and if FALSE, will make the entire formula not show any results of the IF statements. The G$20=1,5,10 will check to see if those values = 1,5,10 and return the corresponding cells data.

F2 takes the same approch with TablesData!07=TRUE and check to see if that is TRUE, controlled by a form check box, and if TRUE, will make the entire forumla not show any results IF statements. If it returns a false, the cell returns the data in cell Analysis!Q4.

Now, I would like to combine these two into one so if either or of the form check boxes are check, the forumla either show or doesn't show the results.

Can this be done and how would one setup the formula, as I'm stuck.

Here's the formula I've tried without good results, as I cannot get it to toggle to the very last IF.
Code:
=IF(TablesData!G3=FALSE,"",IF(G$20=1,Analysis!F4,IF(G$20=5,Analysis!J4,IF(G$20=10,Analysis!N4,IF(TablesData!O11=TRUE," ",Analysis!Q4)))))
Any suggestions would be appreciated.
 
Even removing the IF(TablesData!G4=FALSE,"" the remaining formula still does not work, so I don't think it matters if the TablesData!G4 is there or not, as I don't see the wrong in it, as it only hides the value in the cell and nothing else.

If I'm completely wrong, I might need to have it spelled out in detailed english.
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I decided to just increase the worksheet to include two additional columns and work out the data in separate IF statements.

Code:
=IF(TablesData!G3=FALSE," ",IF(TablesData!O$15=TRUE,Analysis!R4,IF(TablesData!O$15=FALSE,Analysis!S4,"")))

It works, but require more work to keep things updated.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,841
Members
449,051
Latest member
excelquestion515

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