If/then statements

lechat

New Member
Joined
Apr 2, 2012
Messages
1
Hello,

I am trying to align a column of data with a neighboring column so that the data is in one continuous row.

For instance, this is how the data looks now:
Bill (e.g. A2
5 (neighboring column, one space down. e.g. B3)
Chrissy
8 (neighboring column, one space down)
Dan
3 (neighboring column, one space down)

And I want it as:
Bill (A2) 5 (B2)

Chrissy 8 ..etc.

Dan 3 ..etc.

where names remain alphabetical as is but the numbers just align to the names, not sorted ascending or descending in any way.

I assume an if/then statement can fix this.

How can I go about doing this?

Thanks
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi and Welcome to the Board,

From your description, it isn't clear what Cells Chrissy and Dan start in.
If they are in Column A directly below Bill, you would be able to select Cell B1, then Delete > Shift Cells Up.
Excel Workbook
AB
1Bill
25
3Chrissy
48
5Dan
63
Sheet



If I misintepreted that, please post screen shots like this one showing your Before and After images.
 
Upvote 0

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

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