Wondering if this is even possible...

Robmeister89

New Member
Joined
Sep 5, 2017
Messages
10
I've stumped myself with this one, and I'm not sure its even possible..

I want to create a formula that checks if a cell is blank, if it is not I want it to = a designated cell. If that cell is blank I want it to check a different cell if its blank. This formula will be copied down a column to paste numbers. There will be 16 cells not blank for sure.

So its basically like this...
A1 = not blank
A2 = blank
A3 = blank
A4 = not blank
...

I want the formula in C1 to check for A1 first and foremost. Since its not blank C1 = B1. C2 will check A2, since its blank it will check A3, and since that one is blank C2 should = A4. The problem I'm running into is when I reach C3. C3 will check A3 first and then A4 so it ends up equaling the same thing as C2 (A4). I want the formula to not only check if its blank but check if the cell above is already being used..

Is this possible? I'm sorry if this all sounds way to confusing!
 
Is the following what you are after?

122
34
345
557
68
879
8811
2914
91115
1218
1320
314
215
16
17
318
19
120

<tbody>
</tbody>
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
This can be done quite easily with a filter or VBA. However, unlike formula, which is automatic, both involve human intervention every time the data is changed/updated (filter you have to set it up; VBA you have to run it).

To get the result I posted above, I set up a filter on Column A and uncheck "blanks". Then, I copied Column B to C. Not a lot of work but can be cumbersome if your data is updated often. I bet some genius can come up with a formula to get the same result.
 
Last edited:
Upvote 0
This can be done quite easily with a filter or VBA. However, unlike formula, which is automatic, both involve human intervention every time the data is changed/updated (filter you have to set it up; VBA you have to run it).

To get the result I posted above, I set up a filter on Column A and uncheck "blanks". Then, I copied Column B to C. Not a lot of work but can be cumbersome if your data is updated often. I bet some genius can come up with a formula to get the same result.
Can you explain how you did that using filters?
 
Upvote 0
Click on Column A to highlight the entire column. Then, on the menu bar, click "Data/Filter". This puts a triangle on the top of Column A. Click at it and a window will pop up. At the bottom of the windows you'll see some items are checked. Uncheck the one named "Blanks". This will hide blank rows. Now, copy Column B to C and click "Filter" one more time to get rid of the filter. This will unhide hidden rows.
 
Upvote 0
Click on Column A to highlight the entire column. Then, on the menu bar, click "Data/Filter". This puts a triangle on the top of Column A. Click at it and a window will pop up. At the bottom of the windows you'll see some items are checked. Uncheck the one named "Blanks". This will hide blank rows. Now, copy Column B to C and click "Filter" one more time to get rid of the filter. This will unhide hidden rows.
Okay, yeah, that isn't going to work in this situation. Thanks anyways!
 
Upvote 0
Try this formula in C1, copied down.


Book1
ABC
1122
234
3345
4557
568
6879
78811
82914
991115
101218
111320
12314
13215
1416
1517
16318
1719
18120
Sheet2 (2)
Cell Formulas
RangeFormula
C1=IFERROR(INDEX(B$1:B$18,AGGREGATE(15,6,(ROW(B$1:B$18)-ROW(B$1)+1)/(A$1:A$18<>""),ROWS(C$1:C1))),"")
 
  • Like
Reactions: yky
Upvote 0
Worksheet Formulas
CellFormula
C1=IFERROR(INDEX(B$1:B$18,AGGREGATE(15,6,(ROW(B$1:B$18)-ROW(B$1)+1)/(A$1:A$18<>""),ROWS(C$1:C1))),"")

<tbody>
</tbody>

<tbody>
</tbody>
As I said, some genius would come up with a formula to do it. Great job!

What are the 15 and 6 in the formula?
 
Last edited:
Upvote 0
What are the 15 and 6 in the formula?
15 = "SMALL", 6 = "Ignore errors"
If you look up the Help for the AGGREGATE function it will list the possible values for those first 2 arguments in the function and what they mean.
 
Upvote 0

Forum statistics

Threads
1,221,444
Messages
6,159,912
Members
451,601
Latest member
terrynelson55

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