Use of VBA code or otherwise

Jar888

Board Regular
Joined
Jan 15, 2022
Messages
61
Office Version
  1. 2016
Platform
  1. Windows
Hi there, is there a way to use VBA code or otherwise to make the left hand side look like the right as per the example excel snip I've attached?

I pull the data in at the moment as a block from another sheet into the left hand sides format. The only thing I really care about is the drill/single/twin/cut&drop numbers though. Everything else is mute. But the tricky part comes where the name might not match the heading in the same row. Generally speaking, each 4 rows of a machine are operated by the person at the top of the machine# and the others are just trainees.

Extract.PNG


1644645043101.png
 
Sorry, no. I displayed the 6 dates at the start, then #N/A for operator and blank everything else.
I copied you data from the XL2BB post to my test sheet, ran the code and got identical results to what you posted on the right.

What happens if you copy your own sample data from post #5 to a blank worksheet, using this icon at the top-left ..

1644738012199.png


.. clear columns P:AA and then run the code?

If that is not working for you then something must still be different between our worksheets. Perhaps it relates to those formulas that you mentioned.
Is it possible for you to upload the sample file, with formulas from linked sheets (& therefore also the linked sheets) included, but any sensitive data disguised, to DropBox, OneDrive etc and provide a shared link here in the forum?
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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