+ Reply to Thread
Results 1 to 7 of 7

Multiple if calculation

  1. #1
    Registered User
    Join Date
    03-19-2019
    Location
    England
    MS-Off Ver
    Microsoft Office
    Posts
    4

    Multiple if calculation

    Please. Plus someone help with the following formula

    Date: 21 March
    Today’s date: 19 March
    Ccy: Usd

    Date: 28 March
    Today’s date: 19 March
    Ccy: eur

    Need the formula calculation to say if it is eus and two day prior to due date to say yes and if more than two day to say no and if it is usd to say yes if one day prior and no if more than one day.

    Thanks

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

    Re: Multiple if calculation

    Try

    =AND(A2 < A1, A2+IF(A3="EUR",2,1)=A1,"Yes","No")

    with your data in A1 A2 A3
    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.

  3. #3
    Registered User
    Join Date
    03-19-2019
    Location
    England
    MS-Off Ver
    Microsoft Office
    Posts
    4
    Quote Originally Posted by Special-K View Post
    Try

    =AND(A2 < A1, A2+IF(A3="EUR",2,1)=A1,"Yes","No")

    with your data in A1 A2 A3
    I tried but seemed no luck.

    If I had data as follows:

    21/03/19. 19/03/19. Usd
    28/03/19. 19/03/19. Eur

    I want it to flag up two days prior to today date for eur and one day for usd.

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

    Re: Multiple if calculation

    1. Oops! Dunno why I typed that formula.
    This works

    =IF(AND(A2<=A1,A2+IF(A3="EUR",2,1)=A1),"Yes","No")

    This will flag 2 days before for EUR and on todays date
    or 1 day before for USD and on todays date

    2. Whoah! Hold on
    Now we're both making mistakes.

    In your intial description you said "and two day prior to due date"
    Now youve just said "to flag up two days prior to today date"
    Last edited by Special-K; 03-19-2019 at 11:10 AM.

  5. #5
    Registered User
    Join Date
    03-19-2019
    Location
    England
    MS-Off Ver
    Microsoft Office
    Posts
    4
    Quote Originally Posted by Special-K View Post
    1. Oops! Dunno why I typed that formula.
    This works

    =IF(AND(A2<=A1,A2+IF(A3="EUR",2,1)=A1),"Yes","No")

    This will flag 2 days before for EUR and on todays date
    or 1 day before for USD and on todays date

    2. Whoah! Hold on
    Now we're both making mistakes.

    In your intial description you said "and two day prior to due date"
    Now youve just said "to flag up two days prior to today date"
    Sorry for confusion. Yes I want it flag up two days or less for eur and one day or less for usd.

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

    Re: Multiple if calculation

    Another attempt, this looks better

    =IF(A2+IF(A3="EUR",2,1)>=A1,"Yes","No")

  7. #7
    Registered User
    Join Date
    03-19-2019
    Location
    England
    MS-Off Ver
    Microsoft Office
    Posts
    4
    Quote Originally Posted by Special-K View Post
    1. Oops! Dunno why I typed that formula.
    This works

    =IF(AND(A2<=A1,A2+IF(A3="EUR",2,1)=A1),"Yes","No")

    This will flag 2 days before for EUR and on todays date
    or 1 day before for USD and on todays date

    2. Whoah! Hold on
    Now we're both making mistakes.

    In your intial description you said "and two day prior to due date"
    Now youve just said "to flag up two days prior to today date"
    Thanks for this. I think this might work initially checking.

    Will plug the numbers in tomorrow and double check.

+ 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] One calculation with multiple results
    By Jacolene in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-06-2016, 06:45 AM
  2. Multiple Row formula calculation
    By nelsonfaria78 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2016, 05:58 AM
  3. Multiple formula/calculation help
    By kyohnke in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-13-2015, 03:58 PM
  4. [SOLVED] Calculation across multiple spreadsheets
    By mcc28x66 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2015, 10:47 AM
  5. [SOLVED] Multiple Criteria Calculation
    By pandora1a2b in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2015, 10:52 AM
  6. Multiple of 15 calculation
    By Isaacadete in forum Excel General
    Replies: 8
    Last Post: 06-02-2015, 09:39 AM
  7. Tip Calculation for Multiple Positions
    By Sommelier in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-27-2013, 05:11 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