Pasting concatenated data in another worksheet whilst ignoring blanks

rmcc

New Member
Joined
Dec 23, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi there, I have the following table input:
1675694989685.png


I want to be able to transfer this input data into another worksheet log whilst combining the information. For example I need the sample #s, lot #s and amounts supplied to transfer into a single cell on the next worksheet in the following format:
1A 1.60ml
2B 5.00ml
3C 3.50ml


I have the following code thanks to some helpful people on here! The first issue I'm having is that I need to ignore any blanks from the input sheet when the data pastes over into the second worksheet otherwise I just get a lot of new lines within the single cell with just "ml" stated such as:
1A 1.60ml
2B 5.00ml
3C 3.50ml
ml
ml


The second issue I'm having is that I'm attempting to paste into the next available cell on the second worksheet once a new input has been made however from my code nothing is pasting over, I know it's probably something very simple and I've completely missed but any help with this would be greatly appreciated, I'm very new to vba so any guidance would be great :)

1675696299484.png
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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