Hello,
I have tried using
=IF(B2>DATE(2017,10,16),2,1)
to classify records into two groups but it doesn't work.
What should I be doing?
Thanks
Hello,
I have tried using
=IF(B2>DATE(2017,10,16),2,1)
to classify records into two groups but it doesn't work.
What should I be doing?
Thanks
Too little information. In what way doesn’t it work? What exactly is in B2 and is it properly formatted?
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
What is in B2? Formula is OK.
B2 contains dates and I am getting a list of 1's.
If the date is 17/10/16 or after I would like 2's and 1's prior to this date.
Thanks.
It's not a true date, then - probably text that looks like a date.
Attach the workbook.
Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
Spreadsheet attached
DATE(2017,10,16) is the 16th of October 2017
17/10/16 is 17th October 2016, what date do you want to use
and think about if you need >= instead of >
no date in you example is > 16th October 2017 hence you get 1 every time
Thanks, I hadn't realized!
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks