Nested IF Statement Returning FALSE

oenleunc

Board Regular
Joined
Aug 27, 2012
Messages
52
Office Version
  1. 2016
Platform
  1. Windows
Ok I've stared at this a really long time and I can't figure out where my missing "else" statement(s) needs to go.

I have 5 columns that *might* have inputs in them, but the maximum number of those 5 that will have inputs is 3. It could be any combination of three out of five.

On a different tab I have three columns (O, P, Q) to capture those three possible inputs; the first column (O) was an easy nested IF statement finding the first column that has an input. No Problem. The next two columns (P and Q) are tougher.

I want my formula to return the value in the first one that has something in it, otherwise jump to the next. If only one (or two) of the columns AG-AK have a value, I want P (or Q) to remain blank.

AG = OpEx
AH = CapEx
AI = Revenue
AJ = FTE
AK = EEX

Excel Formula:
=IF(O2="OpEx",IF(Tab!AH4<>"","CapEx",IF(Tab!AI4<>"","Revenue",IF(Tab!AJ4<>"","FTE",IF(Tab!AK4<>"","EEX")))),IF(O2="CapEx",IF(Tab!AI4<>"","Revenue",IF(Tab!AJ4<>"","FTE",IF(Tab!AK4<>"","EEX"))),IF(O2="Revenue",IF(Tab!AJ4<>"","FTE",IF(Tab!AK4<>"","EEX")),IF(O2="FTE",IF(Tab!AK4<>"","EEX"),IF(O2="EEX","","")))))

If AK has EEX that means that it's captured in the first (O) column so the P and Q should be blank, and they are, so that works. If anything else is in Column O but AG-AK only has one value, it returns FALSE.

I know I'm surely missing something simple. I tried to put
Excel Formula:
,""
in between the ending parentheses, but of course that didn't work.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Is this what you're trying to do?

ZAAABACADAEAFAGAHAIAJAK
1
2
3
41st2nd3rdData
5OpExRevenueEEXOpExRevenueEEX
6FTEEEX FTEEEX
7CapExEEX CapExEEX
8Revenue  Revenue
9   
10With 365
11OpExRevenueEEXOpExRevenueEEX
12FTEEEXFTEEEX
13CapExEEXCapExEEX
14RevenueRevenue
15
Sheet1
Cell Formulas
RangeFormula
Z5:AB9Z5=IFERROR(INDEX($AG5:$AK5,1+SMALL(IF($AG5:$AK5<>"",COLUMN($AG5:$AK5)-COLUMN($AG5)),COLUMNS($Z5:Z5))),"")
Z11:AB11,Z14,Z12:AA13Z11=FILTER(AG11:AK11,AG11:AK11<>"","n/a")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,782
Messages
6,174,513
Members
452,568
Latest member
CVW

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