+ Reply to Thread
Results 1 to 10 of 10

Complex Formulas and If Formulas

  1. #1
    Registered User
    Join Date
    03-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Question Complex Formulas and If Formulas

    Alright usually I am pretty good at Excel but this one has me stumped. In a row I have different dates, X's, and blanks. I have a new row that has the soonest date of all the columns including the "X". So I need the formula to give me the date that is happening the soonest. If the column has an "X" then it can be a date way off in the future so that it's not the soonest. If the column is a blank then I need it to be todays date, and if it's a date then what ever date it is. This is what I have that doesn't work and is huge. I know this is horribly complicated and could probably be done better but with that I am tracking it's what I have to use. Thank you in advance for the help.

    =MIN(H5,M5,Q5,S5,IF(ISBLANK(F5),(TODAY())),IF(ISBLANK(I5),(TODAY())),IF(ISBLANK(J5),(TODAY())),IF(ISBLANK(O5),(TODAY()))*IF("X",(1/1/2099)),IF("X",(1/1/2099)),IF("X",(1/1/2099)),IF("X",(1/1/2099)))

    Explained:

    F5 is a "X" or Blank
    H5 is a date
    I5 is a "X" or Blank
    J5 is a "X" or Blank
    M5 is a date
    O5 is a "X" or Blank
    Q5 is a date
    S5 is a date
    Last edited by Nuclearman83; 03-14-2012 at 02:14 PM. Reason: Bad Title

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Very Tough One (See if you can figure it out)

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.


  3. #3
    Registered User
    Join Date
    03-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Complex Formulas and If Formulas

    Is the title better? Sorry, I am a noob here and am not sure how to title this because it includes so much.

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Complex Formulas and If Formulas

    could you attach a sample workbook?

    but if i understand correctly, this should work for you:

    =MIN(H5,M5,R5,S5,IF(F5="",TODAY(),"100000"),IF(I5="",TODAY(),"100000"),IF(J5="",TODAY(),"100000"),IF(Q5="",TODAY(),"100000"))
    Last edited by DGagnon; 03-14-2012 at 01:58 PM.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  5. #5
    Registered User
    Join Date
    03-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Complex Formulas and If Formulas

    I attached a sample of the information. It has sensative information in it so I just took a snapshot of it and cropped it.
    Sample.jpg

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Complex Formulas and If Formulas

    this should work for you:

    =MIN(H5,M5,S5,IF(F5="",TODAY(),"100000"),IF(I5="",TODAY(),"100000"),IF(J5="",TODAY(),"100000"),IF(Q5="",TODAY(),"100000"))

  7. #7
    Registered User
    Join Date
    03-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Complex Formulas and If Formulas

    Thank you for the help but with the new formula I keep getting 1/0/1900 for the soonest date. Again thank you though.

  8. #8
    Registered User
    Join Date
    03-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Complex Formulas and If Formulas

    Ahhh! You are the man! or Woman! Works perfectly, I think that I was just "filling" wrong. Thank you so much for your help.
    Last edited by Nuclearman83; 03-14-2012 at 02:12 PM.

  9. #9
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Complex Formulas and If Formulas

    i was not accounting for a date cell to be blank

    try this:

    =MIN(IF(H5="",TODAY(),H5),IF(M5="",TODAY(),M5),IF(S5="",TODAY(),S5),IF(F5="",TODAY(),"100000"),IF(I5="",TODAY(),"100000"),IF(J5="",TODAY(),"100000"),IF(Q5="",TODAY(),Q5))

  10. #10
    Registered User
    Join Date
    03-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Complex Formulas and If Formulas

    Lol, your formula looks so much better than mine too. Lol. Thank you again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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