Excel add data to beginning of cell if adjacent cell (to the right) is empty

JONPM

New Member
Joined
Apr 17, 2013
Messages
24
Hi,

Is there a formula I could use which would:

Add data at the beginning of each cell in the left column if and only if the adjacent cell (to the right) is empty.

?? Really struggling with this.

Many thanks,
J
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
this is assuming that you are useing columns ABCd
A and b being what you want to add, and c being the blank cell, d being where you enter the formula.
=if(c1="",sum(b1:a1),"")
231
232
233
23 5
23 5
234
233
23 5
235

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>

this is what I came up with
 
Upvote 0
You can't 'Add' to a cell, that'd make an endless loop referencing itself.

In a third column (Col C), use this (Assuming that col A is your 'Left' column, and B is your 'Right' Column)

"=If(B1="","Added Data"&A1,A1)"

Obviously, change for the correct columns, and either replace 'Added Data' with something else, or a cell reference instead.
 
Upvote 0
I'll try to be more specific.

By 'Add' I mean add to the data in each cell in column B by using a formula which puts the data in (in this case "b.") to all the cells in column B ONLY if there is an adjacent (to the right) blank cell in column C.

23
23
b.2
2 3
b.2
23
23
2 3
23

<tbody>
</tbody>
 
Upvote 0
basically to put a letter b. into the cells in column B which occur adjacent to blank cells in column C

Thanks — been working on this all day and driving me crazy!!
 
Upvote 0
dates are saved as numbers in excel, if you add the date and a number you are going to get a different date
 
Upvote 0
So there is no way of using a formula to put data (in this case the letter b.) into a cell which has numbers in it based upon the adjacent cells content?

before:

19302006
19562004
1920
19181987
19041990
1970
1968
1942 1999
18701934

<tbody>
</tbody>


after formula:

19302006
19562004
b.1920
19181987
19041990
b.1970
b.1968
1942 1999
18701934

<tbody>
</tbody>
 
Upvote 0
closet I've come is (based upon above example):

="b."&B1:B9(IF(ISBLANK(B1:B9),C1:C9,0))

but this doesn't work :/
 
Upvote 0

Forum statistics

Threads
1,214,388
Messages
6,119,226
Members
448,878
Latest member
Da9l87

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