macro count date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all
If I want a macro to count how many days from today, how can I do it? I
have excel column with sale date in the past and want to know which items are
sold more than 3 days ? The macro may be as below
IF
Today_date - date_sale > 3
then
........
Thanks for your help
Daniel
 
Hi all
If I want a macro to count how many days from today, how can I do it? I
have excel column with sale date in the past and want to know which items are
sold more than 3 days ? The macro may be as below
IF
Today_date - date_sale > 3
then
.......
Thanks for your help
Daniel

I'm not sure I understand what you are asking, you're just asking how
to calculate the difference between two dates right?

I think that a simple search in Excel help would have shown that you
can use the function DATEDIF(start_date,end_date,unit) to do what you
want without a macro.

Excel has lots of happy things regarding dates.
 
Y es, I want to compare 2 dates: today date and dates in a column (sale
date). In this column there are many dates and I want conditionally pick
some rows which have more than 3 days

IF Today()- column name > 3 ?
................................................

Don't know how I can do it
Thanks
Daniel
 

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

Back
Top