Fill in blank cells based off criteria

mando415

New Member
Joined
Jun 4, 2013
Messages
8
Happy Friday everyone,

I have 2 columns of data (A-Trans and B-Reason) - each trans in col A should should have a reason in col B.

The logic I am trying to apply is:
  • if A3<>A2 do nothing.
  • if A3=A2 and B3 is blank, B3=B2

I am looking for a solution for this problem. I preferably am looking for a formula in col C that I could then copy back over Col B as values.

Apologies if i did not explain this better.

:confused:

Trans
53514
53514
53535
53535
86453
86453
86453
86453
86454
86454
86486
86486
53556
67060
67060
67060
69346
90011
53601
58768
58768
58768

<colgroup><col width="56" style="width:42pt"> </colgroup><tbody>
</tbody>
Reason
Exchange
Unwanted Gift
Unwanted Gift
Unsuitable
Unsuitable
Unsuitable
Unsuitable
Exchange
E-Commerce Order Return
Exchange
Unsuitable
Unsuitable
Unwanted Gift
Wrong Size

<colgroup><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I would do this with a helper ciolumn (C), using this, copied down...
=IF(B2="",D1,IF(A2=A1,D1,B2))

You can then either hide B, or copy/paste values C over B and then delete C
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,266
Members
448,558
Latest member
aivin

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