Basic formula help

excelcommo

New Member
Joined
Aug 17, 2011
Messages
3
I feel silly, but I can't come up with a simple basic formula that accomplishes the following:

If G1 is blank or empty and E1 is not blank or empty, then make G1 equal to what's in E1, or else leave G1 blank

I don't want a programming solution, I just want a simple everyday excel formula that everyone, including me, should be able to build. I have been able to build multi-nested if then formula's, but I am hitting a mental block with this one.

Signed,
Silly and Embarrassed at Having to Ask
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
In G1:

IF(LEN(E1),E1,"")

Why would you check for cell G1 if your formula comes in cell G1?
 
Upvote 0
You're correct - I wasn't clear. I am constructing the formula in a different column completely, so that if G1 is blank, I wish to then take the value that is in C1 and place it or copy it into G1 because I have some G column entries that already have values. I'm try to fill in blanks in G with matching values from C if they exist, so I can't put the formula in the G cells.

I reckon this invalidates your suggested solution, but I very much appreciate the effort. Can your formula be adjusted, assuming that it is written in a non-related column?
 
Upvote 0
Then take another column and use:

=IF(LEN(G1),G1,IF(LEN(E1),E1,""))

After you've done that, copy these cells and paste special as Values over the ones in column G. It will now contain previous column G values, and cells that are now filled in but were blank previously.
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,142
Members
452,892
Latest member
JUSTOUTOFMYREACH

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