+ Reply to Thread
Results 1 to 11 of 11

IF Nested Formula depending on a "Data Validation List"

  1. #1
    Registered User
    Join Date
    11-23-2014
    Location
    BUCHAREST
    MS-Off Ver
    2010
    Posts
    2

    IF Nested Formula depending on a "Data Validation List"

    HI,

    I`am trying to use a formula to calculate some data depending on a "Data validation List" .
    Briefly I want to calculate the quantity to be sold depending on the contract type.

    I have attached the excel.

    I appreciate your help and support.
    Thank you ,

    Ciprian
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    5,461

    Re: IF Nested Formula depending on a "Data Validation List"

    Try:
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Office 365 (Win 10 - Work) & Office 365 Subscription Insider (Win 10 - Home)
    Posts
    39,641

    Re: IF Nested Formula depending on a "Data Validation List"

    Four nested IFs:

    =IF(A3="Target",(D3/189)+I3,IF(A3="Platinum ",(D3/189)*4.2,IF(A3="Gold ",(D3/189)*4.6,IF(A3="Silver ",(D3/189)*5,0))))

    Note that the metals have trailing spaces in the validation list.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  4. #4
    Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    320

    Re: IF Nested Formula depending on a "Data Validation List"

    Hi Ciprian Campeanu,

    Try in F3: =IF(A3="Target",(D3/189)+I3,IF(A3="Platinum",(D3/189)*4.2,IF(A3="Gold",(D3/189)*4.6,IF(A3="Silver",(D3/189)*5,""))))

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

    Re: IF Nested Formula depending on a "Data Validation List"

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


    And be VERY cautious with the IFERROR function....

  6. #6
    Valued Forum Contributor
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    Office2010
    Posts
    616

    Re: IF Nested Formula depending on a "Data Validation List"

    In the straightline fashion:

    =IF(A3=Sheet2!$A$4,(D3/189)+I3,IF(A3=Sheet2!$A$1,(D3/189)*4.2,IF(A3=Sheet2!$A$3,(D3/189)*4.6,IF(A3=Sheet2!$A$2,(D3/189)*5,0))))

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Office 365 (Win 10 - Work) & Office 365 Subscription Insider (Win 10 - Home)
    Posts
    39,641

    Re: IF Nested Formula depending on a "Data Validation List"

    Belinda - this won't work because of the trailing spaces I mentioned.

  8. #8
    Forum Expert Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    3,636

    Re: IF Nested Formula depending on a "Data Validation List"

    Another one at
    F3
    =D3/189*CHOOSE(MATCH(A3,Sheet2!$A$1:$A$4,),4.2,5,4.6,1)+I3*(A3="Target")

  9. #9
    Valued Forum Contributor
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    Office2010
    Posts
    616

    Re: IF Nested Formula depending on a "Data Validation List"

    Right Ali,
    That's why I made a reference to the values listed in sheet2.
    Attached Files Attached Files

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Office 365 (Win 10 - Work) & Office 365 Subscription Insider (Win 10 - Home)
    Posts
    39,641

    Re: IF Nested Formula depending on a "Data Validation List"

    Doh! Not enough caffeine ...

  11. #11
    Valued Forum Contributor
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    Office2010
    Posts
    616

    Re: IF Nested Formula depending on a "Data Validation List"

    Haha Good Morning!
    Last edited by AliGW; 05-29-2020 at 04:06 AM. Reason: Please don't quote unnecessarily!

+ 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] Data validation "list" - "source" has too many characters
    By bee88 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-21-2015, 04:28 PM
  2. VBA CODE TO hide/unhide based on validation list "YES","NO"
    By SUDI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2014, 06:03 PM
  3. List Data Validation + option of "INC"+12 digit number"
    By penfolda in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2013, 02:53 AM
  4. [SOLVED] Data validation: allow entry into a cell if other three cells have "X", "Y" and "Z"?
    By RogerRangeRover in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2013, 04:49 AM
  5. Creating List of 25 "Journal" Entries Depending on data entered
    By tbonesmith66 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-03-2012, 05:08 PM
  6. Data Validation: Allow "List" or "Whole number"
    By monir in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2006, 11:40 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