+ Reply to Thread
Results 1 to 3 of 3

if Condition match with Date function

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    61

    if Condition match with Date function

    Hi There,

    Assigned if condition formula with matching the date function, but getting error or getting wrong result. is there way out to fix this? attached excel file

    Thanks in Advance.. Senthil
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: if Condition match with Date function

    Hi Senthile, looking at your formula, this is how I follow it:-
    Step 1 If month in column A is less than October then produce text with "month number-year", if month is greater then September, produce FALSE
    Step 2 Then take output of above and if >="06-2018" give a rounded number 0.5% of column B, otherwise produce text again as in step 1
    Step 3 Then take output of above and if >="04-2017" give a rounded number 0.65% of column B, otherwise produce text again as in step 1
    Step 4 Then take output of above and if >="02-2015" give a rounded number 0.65% of column B, otherwise produce text again as in step 1
    Step 5 Then take output of above and if <="01-2015" give a rounded number 1.1% of column B, otherwise leave as FALSE

    I'm not sure why it looks to see if it's earlier than October and is a little cumbersome. I've come up with a much simpler formula that uses your dates as a lookup table instead. It gives all the correct values as per your sample except row 48 (Which I believe was an oversight in your "correct answers").
    Attached Files Attached Files
    Last edited by Beamernsw; 12-19-2019 at 06:38 AM. Reason: Clearer Language

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: if Condition match with Date function

    Resort your table A2:B5 to put the highest date and associated percentage first

    then use

    =LOOKUP(2,1/(A8<=A$2:A$5),B$2:B$5)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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. Replies: 3
    Last Post: 12-06-2019, 02:55 PM
  2. Add a condition to an array function containing INDEX MATCH
    By ErikWi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2019, 07:06 AM
  3. [SOLVED] Condition Forumula if Columns have Strings and if they match to preset condition
    By rosn.dhakal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2018, 10:57 PM
  4. Replies: 3
    Last Post: 02-02-2014, 04:26 AM
  5. [SOLVED] How to use date as a condition in sumifs function
    By 38570 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2012, 10:31 AM
  6. multi condition format? lookup and date condition valid for.
    By D_Rennie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2009, 11:37 AM
  7. If Error condition with Match Function
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2006, 08:59 AM

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