Match the number of A cells for the number of the cells in C

ShadyLad

New Member
Joined
Jan 25, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,
So as shown below,
in A and B I have the model number, in C the color.
Is there a way to duplicate A and B for the number of C?
in our case 5015 wont change
6016 would be added 2 more time to match the 3 colors in C
and 7017 would be added just once
Is there a VBA that would help me here?

1706187741717.png


Thanks in advance :)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
The solution I offer requires that you delete intervening blank rows.

You can use F5, find special cells, select blanks, OK
do nothing else
then type "=" & arrow to one cell up.
DO NOT PRESS ENTER......

PRESS CNTL-ENTR.

This will also fill your blank rows between sections though (which is why you need to delete them).
(or you could create a formula in all the blank cells that also checks to see if you have a color listed in the color column).
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,383
Members
449,445
Latest member
JJFabEngineering

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