+ Reply to Thread
Results 1 to 9 of 9

Show same dates every month.

Hybrid View

  1. #1
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Show same dates every month.

    Hi,

    i had a Column which contains Months in (MMMM) format. What i want is to show the From & To dates based on the month.I had attached an example of the same.

    Kindly,help me in this regard.
    Attached Files Attached Files
    Last edited by excelkeechak; 06-16-2010 at 10:49 PM.
    THANKS
    ExcelKeechak

  2. #2
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Show same dates every month.

    Is it not possible.???

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Show same dates every month.

    In C2 copied down: =("22 "&SUBSTITUTE(B2,"'"," "))*1
    In D2 copied down: =DATE(YEAR(C2),MONTH(C2)+1,20)

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  4. #4
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Re: Show same dates every month.

    Nice Domski. I didn't even think to coerce excel into converting it like that with the *1. I was going to provide a longer more complicated version that it didn't need to be.

    =DATE(20&RIGHT($B2,2),MONTH(1& LEFT($B2,FIND("'",$B2)-1)),22)

    So that helped me too and I didnt need it

  5. #5
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Show same dates every month.

    WOW.....thats amazing.......results......

    Thanks both for your Formulas.

    I had been struggling with this little formula from an year................

    Once again.......Thanks a ton.....

  6. #6
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Show same dates every month.

    Thanks Domski...as Dulanic said.i never thought that we can build excel formulas like this also.....

    Hats off.....

  7. #7
    Registered User
    Join Date
    05-19-2010
    Location
    Newport Pagnell, England
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Show same dates every month.

    This also works:
    For the 1st date
    =DATEVALUE(CONCATENATE("22/",LEFT($B2,FIND("'",$B2)-1),"/",RIGHT($B2,2)))
    For the 2nd date
    =DATEVALUE(CONCATENATE("26/",MATCH(LEFT($B2,FIND("'",$B2)-1),$N$2:$N$13,0)+1,"/",RIGHT($B2,2)))

    if N2:N13 contains a list of January, February, March etc.

    Domski's solution is better I think.
    Last edited by SgtSunshine; 06-17-2010 at 10:40 AM.

  8. #8
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Show same dates every month.

    Thanks for the replies.

    I had one more query in connection to this post.how can i change the above formula if i had two or more products in the worksheet.I mean is it possible to display different dates for different products based on the vlookup using a helper column.

    Any other ideas would be greatly helpful to me.

    TIA.

  9. #9
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Show same dates every month.

    any suggestions or ideas please.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1