How to populate from one cell if another is empty, multiple times?

kellyfirth

New Member
Joined
Nov 26, 2014
Messages
15
If cell A1 says: #N/A N/A then populate from A2. However if A2 also says: #N/A N/A then populate from cell A3. If A3 is also saying: #N/A N/A then populate from A4.

I'm able to do this for just one switch, so I can get it to populate from A2 if A1 says it. But I'm not sure how to do it for all these cells? Does this make sense? All help is very appreciated
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
2 ways maybe
=LOOKUP(2,1/(A1:A4<> "#N/A N/A")*(A1:A4<>""),A1:A4)
=IFERROR(INDEX(A1:A4,MATCH("#N/A N/A",A1:A4)+1),A1)
 
Last edited:
Upvote 0
This half works but I need it to prefer the cell A1 over A4. If there is data in both A1 and A4, it is currently picking up A4
 
Upvote 0
not what you asked! try this array entered formula
=IFERROR(INDEX(A1:A4,MATCH(1,(A1:A4<>"#N/A N/A")*(A1:A4<>""),0)),"sorry all are #N/A N/A or blank ")
 
Upvote 0
Apologies, I wasn't sure how to phrase it! :( This still isn't working, it's coming up with the 'sorry all are #N/A N/A or blank' when there are numbers in some of the cells?
 
Upvote 0
Thank you! This worked with the ctrl, shift & enter. Much appreciated and apologies for taking up your time! :)
 
Upvote 0

Forum statistics

Threads
1,215,597
Messages
6,125,738
Members
449,255
Latest member
whatdoido

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