IF statement with multiple

kiwicanta7

New Member
Joined
May 3, 2021
Messages
15
Office Version
  1. 2016
Platform
  1. Windows
Hello All!

So I have cells that may or may not have user inputs that would determine how many returns are provided. The statements basically go down the list to determine if the 25th slot is filled out and if not checks if the 24th slot is filled out etc. If the 25th slot is filled out it provides the relevant information in E3 for all 25 slots, if only 24 slots are filled out F3 provides the correct information then etc. Using the code below (though done 25 times in my code) I'm trying to get it to only spit out the relevant information if that cell is not blank. Any ideas why it is outputting all 25 slots regardless of if there is any input in the cell?

=IF(AND('START HERE'!B198<>""),E3,
IF(AND('START HERE'!B194<>""),F3,
IF(AND('START HERE'!B190<>""),G3,
IF(AND('START HERE'!B186<>""),H3,
etc.

Thank you for the help!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Would you use XL2BB to provide some relevant sample data and the solution(s) you expect?
 
Upvote 0
Nevermind, it was an issue with the email button I had setup. It was referencing the wrong cell. Thank you for your response!
 
Last edited:
Upvote 0
Nevermind, it was an issue with the email button I had setup. It was referencing the wrong cell. Thank you for your response!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,533
Messages
6,120,076
Members
448,943
Latest member
sharmarick

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