+ Reply to Thread
Results 1 to 16 of 16

Get Date prior to actual Date

  1. #1
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Post Get Date prior to actual Date

    Hi

    I would like to re create my previous post,
    I thought I can sort things out by just getting the formula for the Date prior to actual date, but now I really need help.
    Ok, so here is my situation,
    I need to get the Date Prior to Actual Date but it has multiple criteria.
    I need a formula that is flexible so that I will just drag it down and it will calculate correctly.
    I will attach the sample file I have so far, I also used the formula given by "Bebo"

    sample.xlsx

    I hope you guys out there could help me out. Thank you so much.

    I also posted this question in below link: crosspost:
    http://www.mrexcel.com/forum/excel-q...tual-date.html
    http://www.excelforum.com/excel-form...tual-date.html
    http://www.vbaexpress.com/forum/show...to-Actual-Date
    http://www.excelfox.com/forum/f2/get...ual-date-1992/
    Attached Images Attached Images
    Last edited by mackypogi; 02-25-2015 at 11:18 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Get Date prior to actual Date

    Try in C7:

    =INDEX(A$4:A$11,MATCH($B$1,$A$4:$A$11,0)-1)

    Copy to D7, format as number
    Quang PT

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Get Date prior to actual Date

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    Crosspost: http://www.mrexcel.com/forum/excel-q...tual-date.html
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Get Date prior to actual Date

    Hi alansidman,

    apologies, I am not aware of that. It will not happen again.

    Hi Bebo,

    Thanks for your reply, will try it and get back to you.

  5. #5
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Get Date prior to actual Date

    hi bebo,

    it works, but I notice some problem if there are spaces or blank row it will not get the prior date

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Get Date prior to actual Date

    Hi mackypogi,

    Pls follow the rule with "please edit your first post to include links to any and all cross-posts in any other forums"

    then we keep continuing.

  7. #7
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Get Date prior to actual Date

    Hi bebo,

    I edit my post and include the link. is it correct?

  8. #8
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Get Date prior to actual Date

    Hi bebo,

    I uploaded a sample excel file below.

    sample.xlsx

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Get Date prior to actual Date

    I can see your file is quite differ from what you required in prev. post

    Can you explain more about what you are expected to get in K column with SUMIFS?

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Get Date prior to actual Date

    Also, give your designed results in K column.

  11. #11
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Get Date prior to actual Date

    Hi Bebo,

    Sorry for confusion,
    Result in Column K = I need to SUM the (Volume 1 'Column F' = Actual date) + (Volume 3 'Column H' = Prior to Actual Date) + (Volume 5 'Column J' = Prior to Actual Date).

    Actually the code you give to me works, but incase there are blank row it will ruin the formula.

  12. #12
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Get Date prior to actual Date

    Hi, mackypogi,

    additional links where this thread has been posted with no informqation about CP added:
    http://www.vbaexpress.com/forum/show...to-Actual-Date
    http://www.excelfox.com/forum/f2/get...ual-date-1992/

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  13. #13
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Get Date prior to actual Date

    Try in K4:

    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Get Date prior to actual Date

    Hi bebo,

    Thank you for your response, I will try and get back to you

  15. #15
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Get Date prior to actual Date

    Quote Originally Posted by mackypogi View Post
    Hi

    I would like to re create my previous post,
    I thought I can sort things out by just getting the formula for the Date prior to actual date, but now I really need help.
    Ok, so here is my situation,
    I need to get the Date Prior to Actual Date but it has multiple criteria.
    I need a formula that is flexible so that I will just drag it down and it will calculate correctly.
    I will attach the sample file I have so far, I also used the formula given by "Bebo"

    Attachment 379577

    I hope you guys out there could help me out. Thank you so much.

    I also posted this question in below link: crosspost:
    http://www.mrexcel.com/forum/excel-q...tual-date.html
    http://www.excelforum.com/excel-form...tual-date.html
    http://www.vbaexpress.com/forum/show...to-Actual-Date
    http://www.excelfox.com/forum/f2/get...ual-date-1992/
    Guys, I updated my post, and hopefully you can help me out.

  16. #16
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Get Date prior to actual Date

    Something like this:

    K3=F3

    K4 then drag down:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Lookup Date 14 days prior and add multiple values for that date into column
    By Shylmysten in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-03-2013, 02:15 AM
  2. Need a formula involving current date, prior date, and monetary values!!!
    By RprzGrl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2012, 04:10 PM
  3. Given a date......find the same date two months prior to the given date
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2012, 11:24 PM
  4. Replies: 2
    Last Post: 01-04-2012, 09:15 AM
  5. Replies: 3
    Last Post: 11-18-2011, 09:12 AM

Tags for this Thread

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