Nested =IF formula not working - PLS HELP!!

Rana Gray

Board Regular
Joined
Jan 26, 2023
Messages
53
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hey Everyone I've been trying to figure out how to write this formula and I'm open to using VBA if need be but I'm super new to it so my knowledge is limited.

Summary: I'm trying to get CELL = [sheet2] X but if X is Blank then CELL = [sheet2] Y, if Y is Blank then CELL = [sheet2] Z, and if [sheet2] Z is Blank then leave Blank

=IF('Product Selection (1)'!K14=0,'Product Selection (1)'!K22,IF('Product Selection (1)'!K22=0,'Product Selection (1)'!K36,IF('Product Selection (1)'!K36=0,"")))

I would use VBA Case Function of IF/IFELSE but I don't know how to start off the sub.

Any advise would be super amazing!! Thanks a bunch in advance!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi & welcome to MrExcel.
Maybe
Excel Formula:
=IF('Product Selection (1)'!K14<>"",'Product Selection (1)'!K14,IF('Product Selection (1)'!K22<>"",'Product Selection (1)'!K22,IF('Product Selection (1)'!K36<>"",'Product Selection (1)'!K36,"")))
 
Upvote 1
Solution
Hi & welcome to MrExcel.
Maybe
Excel Formula:
=IF('Product Selection (1)'!K14<>"",'Product Selection (1)'!K14,IF('Product Selection (1)'!K22<>"",'Product Selection (1)'!K22,IF('Product Selection (1)'!K36<>"",'Product Selection (1)'!K36,"")))
Can I just say you are my HERO!!!! I know this maybe asking a lot but I want to learn could you explain what this formula says that way I can use it in other situations if need be?
 
Upvote 0
It says if K14 isn't blank use K14 else if K22 isn't blank use K22 etc
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

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