IF Loop formatting

dcm926

New Member
Joined
Aug 8, 2011
Messages
5
I need to write some kind of loop to check a cell for its contents and if the cell is empty then take the text from the cell to its left and insert to the most recent cell with a value.

ExcelHelp.jpg


That is screen shot sample of my worksheet. So for example, cell B3 is empty therefore I want the contents of A3 to be placed in A2. Also the contents of B12 are empty, so I want to take the contents of A12:A14 and place them together in one cell, A11 (because B11 contains the most recent number).

Any help would be greatly appreciated. Thank you!
 
Last edited:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I am working on this for my company and we are under slight pressure. PLEASE HELP!!!

Thanks!
 
Upvote 0

Forum statistics

Threads
1,216,434
Messages
6,130,596
Members
449,584
Latest member
c_clark

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