Date and Time

M

mmoore2895

I have spreadsheet that barcode numbers are scanned into. I would lik
to set it up where when the number is scanned into the cell that th
date and time are automatically entered into the cells to the right
I'm pretty good with functions, formulas, and macros and such, but
can't seem to figure this one out. Anyone have any ideas
 
V

vtisix

First, you have to turn on Iteration in Tools > Options. If data is
scanned into cell A1, try formula:

=if(isblank(A1),"",if(B1="",Now(),B1))
 
M

mmoore2895

I've tried =if(isblank(A1),"",if(B1="",Now(),B1)) before and the proble
with it is the "Now" makes the date time continually update. I need th
date and time to be entered and stay that same date and time. I did
Macro where you can run the macro and it inserts a date and time tha
does not continually update by using Control + ; and Control + Shift
; Is there a way to do a formula that will run the macro when the dat
is scanned into the first cell
 
V

vtisix

Try:
=if(isblank(A1)," ",if(B1=" ",Now(),B1))

Notice the extra spaces between " ".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top