+ Reply to Thread
Results 1 to 4 of 4

Adding an IF condition to an existing IF condition

  1. #1
    Forum Contributor
    Join Date
    12-03-2021
    Location
    Brussels
    MS-Off Ver
    Microsoft 365
    Posts
    186

    Adding an IF condition to an existing IF condition

    Hello everyone,


    Please check the file attached, and have a look at the cells GENERAL! A35 and A36.

    =IF(I33=0,VALIDATIONS!AE3,VLOOKUP(VLOOKUP(G1,VALIDATIONS!G:AX,18,0),TRANSLATIONS!A:C,MATCH(I4,TRANSLATIONS!A1:C1,0),0))

    =IF(I33=0,VALIDATIONS!AE4,VLOOKUP(VLOOKUP(G1,VALIDATIONS!G:AX,19,0),TRANSLATIONS!A:C,MATCH(I4,TRANSLATIONS!A1:C1,0),0))

    These formula returns the value of the cells VALIDATIONS! AE3/4 if GENERAL! I33 equals zero. Otherwise, it returns some other value (this part doesn't matter).


    Now I need to add a condition in these formula, as below.

    If GENERAL! I3 = VADLIATIONS! AD2, then the first formula should return VALIDATIONS! AE2

    If GENERAL! I3 = VADLIATIONS! AD2, then the second formula should return VALIDATIONS! AE4


    Your help would be highly appreciated in this.

    Thanks
    Simon
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Adding an IF condition to an existing IF condition

    I don't really see what you want here
    MAybe you should explain a little more
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: Adding an IF condition to an existing IF condition

    Hi Simon, Just put the new conditions at the beginning of the formula. Make sure "VALIDATIONS" is spelled correctly as well.
    equals IF(GENERAL!I3=VALIDATIONS!AD2,VALIDATIONS!AE2,IF(I33=0,VALIDATIONS!AE3,VLOOKUP(VLOOKUP(G1,VALIDATIONS!G:AX,18,0),TRANSLATIONS!A:C,MATCH(I4,TRANSLATIONS!A1:C1,0),0)))
    and equals IF(GENERAL!I3=VALIDATIONS!AD2,VALIDATIONS!AE4,IF(I33=0,VALIDATIONS!AE4,VLOOKUP(VLOOKUP(G1,VALIDATIONS!G:AX,19,0),TRANSLATIONS!A:C,MATCH(I4,TRANSLATIONS!A1:C1,0),0)))
    -Squeaky

  4. #4
    Forum Contributor
    Join Date
    12-03-2021
    Location
    Brussels
    MS-Off Ver
    Microsoft 365
    Posts
    186

    Re: Adding an IF condition to an existing IF condition

    Thanks Squeaky, your answer worked perfectly well !

+ 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] Adding a condition to an existing formula with various IF statements
    By makaveeti in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-23-2022, 10:05 AM
  2. [SOLVED] Adding condition to an existing IF Statement.
    By makaveeti in forum Excel General
    Replies: 2
    Last Post: 03-07-2022, 12:59 PM
  3. [SOLVED] Adding a second condition to an existing formula
    By ZedaG in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-09-2016, 07:26 PM
  4. [SOLVED] Adding a "not to exceed" condition to existing formula
    By RandomRed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2014, 10:55 AM
  5. Need help in adding the IF condition in existing Formula
    By Manish_Gupta in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2013, 01:00 AM
  6. Adding an IF condition into an existing formula.
    By dmejia174 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2013, 07:33 PM
  7. Adding condition to existing formula
    By KINNEY0201 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-16-2010, 01:42 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