If a cell=((ISBLANK(REF)), then (Another NOT(ISBLANK(cell)))?

ocp_zoe

New Member
Joined
Oct 14, 2011
Messages
33
Hi, I'm trying to set a formula so that if a cell is blank and the cell above is not, then the destination cell takes the value of the not blank cell:

(in this example C2 is the value having cell and C3 is the blank cell)

Something like =if((ISBLANK(C3)), AND(NOT(ISBLANK(C2))),THEN C2)

Your help would be greatly appreciated.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to the board.

What type of data is in the cells, Text Or Number?
What if BOTH cells have a Value?
What if NEITHER cell has a value?

Assuming you want the bottom cell (C3) if BOTH have a value

If it's Text, try

=LOOKUP(REPT("z".255),C2:C3)

If it's Number, try

=LOOKUP(9.99999999999999E+307,C2:C3)

Hope that helps


These will both return errors if both cells are blank.
 
Upvote 0
Hi and thanks for the reply.
In this instance the cell with a value will have text, the other will have nothing entered.
Example:
C2=Corporate Bonds
C3=totally blank
And I'd like cell D3 to have the text in C2.

This will be replicated down the sheet as I know there is a blank after every desired value.
 
Upvote 0
For your other questions, this formula will only be entered in cells next to the blank cell, so there will never be a case where both cells have values nor both do not.
 
Upvote 0
No, I'm trying to copy the text from the non blank cell into another column.
In my worksheet there will always be a blank cell below the desired cell in column C. At certain points I need to take the value of C2 and put it in column D.
 
Upvote 0
Sample Data
C1. CORPORATE BONDS
C2. CORPORATE BONDS
C3. BLANK
C4. EUROPEAN BONDS
C5. EUROPEAN BONDS
C6. BLANK


Goal is to have
D3=CORPORATE BONDS
And
D6=EUROPEAN BONDS
Etc. Down the sheet.
 
Upvote 0
I'm trying for a formula that says "if the referenced cell is blank and the cell above it is not blank, take the value of the not blank cell and put it here".
 
Upvote 0

Forum statistics

Threads
1,216,471
Messages
6,130,822
Members
449,595
Latest member
jhester2010

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