Is there a automated way of highlighting cells whose adjacent cell is blank?

JONPM

New Member
Joined
Apr 17, 2013
Messages
24
Is there a automated way of highlighting cells whose adjacent cell is blank?

AND THEN input data (in this case "b.") into the highlighted cells?

I would have though that perhaps by utilising a combination on CONDITIONAL sorting/formatting and the =& function might do the trick?? ?


before:
A B C D
19302006
19562004
1920
1918 1987
1904 1990
1970
1968
1942 1999
18701934

<tbody>
</tbody>



after formula/procedure:

19302006
19562004
b.1920
1918 1987
1904 1990
b.1970
b.1968
1942 1999
18701934

<tbody>
</tbody>


Many thanks in advance
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Conditional formulas highlight cells dependent on conditions.
What you're doing is changing the VALUE of a cell

Use a Helper column
in E1
=IF(C1="","b."&B1,B1)
and copy down column E
 
Upvote 0
That is fantastic — thank you!

Is there anyway of extending this formula so that in the instances where BOTH cells in column B and C are empty NO DATA is entered. As in:


before:
A B C D
19302006
19562004
1920
19181987
1970
1968
19421999
18701934

<tbody>
</tbody>




after formula/procedure:

19302006
19562004
b.1920
19181987
b.1970
b.1968
19421999
18701934

<tbody>
</tbody>


It is not possible to delete the row as in the real worksheet there would be data (irrelevant to this sort) in Column A

Many thanks !

 
Upvote 0
=IF(AND(B1="",C1=""),"",IF(C1="","b."&B1,B1))

Does that work ?
Should work, but note that you are testing C1="" twice.
Should be able to simplify to

=IF(C1="",IF(B1="","","b."&B1),B1)
 
Upvote 0

Forum statistics

Threads
1,203,453
Messages
6,055,530
Members
444,794
Latest member
HSAL

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