Nested =IF formula not working - PLS HELP!!

Rana Gray

Board Regular
Joined
Jan 26, 2023
Messages
56
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,224,817
Messages
6,181,147
Members
453,021
Latest member
Justyna P

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