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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I am working on this for my company and we are under slight pressure. PLEASE HELP!!!

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,256
Members
452,901
Latest member
LisaGo

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