Help with a macro please

Buns1976

Board Regular
Joined
Feb 11, 2019
Messages
194
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I have a worksheet where cell B2 is populated by a handheld scanner as text, cell C2 is a date that is keyed and cell D2 is an invoice that is keyed and formatted as text.

What I am looking for is when B3 is populated, cells C3 and D3 are populated with the same date and invoice as C2 & D2 and so forth down to row 50!

Any help would be greatly appreciated.

Thank you!!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
How about just a formula?

B​
C​
D​
E​
1​
Scan input
Date
Invoice
2​
(scan text)
26 Mar 2019​
ABCD
3​
(scan text)
26 Mar 2019​
ABCDC3: =IF($B3 = "", "", C2)
4​
(scan text)
26 Mar 2019​
ABCD
5​
6​
 
Upvote 0
So, are you saying that for all the rows between 3 and 50, when column B is populated, columns C and D should automatically be populated with the same values from the row just above it (or should it always pull the values from row 2)?
 
Upvote 0
shg,

That would be the ticket. I was way overthinking that one.

Thanks so much!!
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,830
Members
449,190
Latest member
rscraig11

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