+ Reply to Thread
Results 1 to 7 of 7

HLOOK UP next due date based on codition met

  1. #1
    Registered User
    Join Date
    05-17-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    21

    HLOOK UP next due date based on codition met

    Hi,

    LOOK UP NEXT DUE DATE USING LAST DONE DATE AS REFERENCE ?

    SO THIS SHOULD TELL ME NEXT DUE DATE IS 05/08/2014 IN "E5". BASED ON LAST DONE DATE "D5" AND YES IS SELECTED "M5".

    I HAVE TRIED SOME BUT HAD TO DELETE THEM

    ANY HELP PLEASE

    CHEERS
    IAIN
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: HLOOK UP next due date based on codition met

    as you have frequency in there
    can you not just add weeks frequency onto it?

    put in e5
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    FYI your example d5 you put 15-7-15 which does not exist in your header
    i think you meant 15-7-14?

    also all caps...sounds like your screaming
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: HLOOK UP next due date based on codition met

    ok i notice you have 12W in which case
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and also OL?
    what is OL?

    anyway this should solve OL as well

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by humdingaling; 05-28-2015 at 12:08 AM.

  4. #4
    Registered User
    Join Date
    05-17-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    21

    Re: HLOOK UP next due date based on codition met

    Thank You,
    So I will stop screaming now? So "W" is for weeks, "Y" is for years and "OL" is off line.
    Works well except when you pick 1Y or 2Y is does not pick up that it is 1 year away on date?

    This is so I can add in another row to replace my tank every 2 years. It is for my aquaponics set up that I have started 10 months ago.

    Thanks Iain

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: HLOOK UP next due date based on codition met

    E5=if(right(g5,1)="w",d5+max(1,iferror(left(g5,len(g5)-1)+0,0))*if(right(g5,1)="w",7,if(right(g5,1)="m",1,if(right(g5,1)="y",12))),if(or(right(g5,1)="m",right(g5,1)="y"),edate(d5,max(1,iferror(left(g5,len(g5)-1)+0,0))*if(right(g5,1)="w",7,if(right(g5,1)="m",1,if(right(g5,1)="y",12)))),""))
    Please Login or Register  to view this content.
    copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: HLOOK UP next due date based on codition met

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    OL = blank
    W = x7

    not OL or W...must be Y unless you add another DV option
    Y = x364

    tested to be the same as your formula for "YES" which is 52*7= 364
    Last edited by humdingaling; 05-28-2015 at 03:02 AM.

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: HLOOK UP next due date based on codition met

    Made some further amendments to take into account if last done is blank in case that is your next question
    Attached Files Attached Files

+ 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. vba code accordint to the codition the value should display
    By pranav.y in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-27-2013, 05:26 AM
  2. Using Hlook up
    By pani_hcu in forum Excel General
    Replies: 1
    Last Post: 10-30-2008, 08:40 PM
  3. lookup with more then one codition
    By zia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2006, 01:35 PM
  4. [SOLVED] Choosing a formula to used based on a codition fulfilled
    By The Big Dog in forum Excel General
    Replies: 1
    Last Post: 10-12-2005, 12:05 PM
  5. Help With HLOOK
    By Hummer2097 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2005, 02:22 PM

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