Hi all,
I have two dates in column A and I need a formula to give me result like this in Column B.
Column A Column B
7/09/2022 Past Week
7/15/2022 Current Week
Hi all,
I have two dates in column A and I need a formula to give me result like this in Column B.
Column A Column B
7/09/2022 Past Week
7/15/2022 Current Week
Last edited by Rosellina; 11-22-2022 at 06:08 AM.
Are those proper Excel dates, formatted as m/dd/yyyy, or text values which look like dates?
Which day of the week is used for the start of a week - Sunday, or Monday?
It would help if you attached a sample Excel workbook, by following the instructions in the yellow banner at the top of the screen.
Pete
Try this:
=IF(ISOWEEKNUM(A1)=ISOWEEKNUM(TODAY()),"CURRENT ","PAST ")&"WEEK"
In future, please make your thread titles MORE DESCRIPTIVE (see the forum rules).
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.
basing this off the criteria that of the two dates the most recent to today is Current and the oldest is past then:
In B1 and drag down
Formula:Please Login or Register to view this content.
<----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.
There might be multiple dates in the current week, though ...
Hi,
Thanks for your reply. I have attached excel sheet for you, please help me how i get column B based on Column A dates.
Please update your thread title to properly explain what you want help with. Do this NOW.
Did you try my suggestion?
=IF(ISOWEEKNUM(A2)=ISOWEEKNUM(TODAY()),"CURRENT ","PAST ")&"WEEK"
Why should 13/11/2022 be the current week when it clearly isn't the current week???
Thanks, I have tried this, it is perfectly fine.
But What if, If I had two different dates ( like one of July and another is of August) and I want to name them as Current for (August) and previous for (July).
Can you please guide me on this ?
So what you really want is the current MONTH, not WEEK?
Try this:
=IF(A2<=EOMONTH(TODAY(),-1),"Past","Current")&" Month"
Thanks, resolved!
Glad to have helped.
If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.
Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
Thanks, done :-)
Many Thanks, very helpful
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks