Merge all cells before an empty cell in a column

sabrez

New Member
Joined
Oct 25, 2017
Messages
12
Hi

I have the below table:

OrderIDPrice
1$18
1$18
1$18
2$16
3$20
4$12
4$12
4$12

<tbody>
</tbody>

Now, I want to merge values in the column Price for duplicate values in Order ID, like below:

OrderIDPrice
1$18
1
1
2$16
3$20
4$12
4
4

<tbody>
</tbody>

Please suggest how.


Regards
Sabrez
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Is :
OrderIDPrice
1$18
1
1
2$16
3$20
4$12
4
4

<tbody>
</tbody>

Realy needed?
Wouldn't:
OrderIDPrice
1$18
2$16
3$20
4$12

<tbody>
</tbody>

be enough?

If so, use remove duplicates from data ribbon.


First effect could be obtained with helper column with formula (in C2):
Code:
=if(A2=A1,"",B2)
Copy this formula down,
copy column C
and paste special as values to column B

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,217,370
Messages
6,136,155
Members
449,995
Latest member
rport

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