Remove Blanks from Adjacent cells

jakewatson

New Member
Joined
Jun 10, 2019
Messages
6
Hi Guys,

I'm trying to remove the blanks from an adjacent column as per the table below. Any ideas from you wonderful people?

[TABLE="width: 500"]
<tbody>[TR]
[TD]Data 1[/TD]
[TD]Data 2[/TD]
[TD][/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Cat
[/TD]
[TD][/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Dog
[/TD]
[TD][/TD]
[TD]Chicken[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Chicken[/TD]
[TD][/TD]
[TD]Sheep[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Cat[/TD]
[TD][/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Sheep[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Apple[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Banana[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thanks!!!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about


Excel 2013/2016
ABCD
1Data 1Data 2Result
21CatCat
3DogChicken
41ChickenSheep
5CatApple
61Sheep
71Apple
8Banana
List
Cell Formulas
RangeFormula
D2=INDEX($B$2:$B$8,AGGREGATE(15,6,(ROW($B$2:$B$8)-ROW($B$2)+1)/($A$2:$A$8=1),ROWS($A$1:$A1)))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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