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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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,034
Messages
6,122,782
Members
449,095
Latest member
m_smith_solihull

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