+ Reply to Thread
Results 1 to 5 of 5

If function with one result being a Dropdown choice based on criteria

  1. #1
    Registered User
    Join Date
    09-27-2019
    Location
    Dublin
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    20

    If function with one result being a Dropdown choice based on criteria

    I am looking to write an if function, where if the the first criteria is met (invoice number is found in a different table), then a dropdown box of results that match that invoice number in the second table is available.

    Tbl_Data column b&C is data report driven
    Tbl_Data column d is where I am developing the formula

    Tbl Names is Manually created after investigating invoices.
    Some invoices have only one name, some invoices have multiple names.
    The data only ever shows the first name on the invoice.
    Tbl_Names is a manual breakout of invoices with Manual names.

    The goal is to create a formula, that if the invoice number in the Tbl_Data shows on Tbl_Names, a data validation dropdown shows up in column D for only the names related to that particular invoice Number
    If the invoice is not in Tbl_names, it should show the name in Column B.
    looking for
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: If function with one result being a Dropdown choice based on criteria

    What is the Maximum number of names expected for one invoice say 5. If total names length is more than 256 we have to go for VBA coding.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    09-27-2019
    Location
    Dublin
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    20

    Re: If function with one result being a Dropdown choice based on criteria

    Quote Originally Posted by kvsrinivasamurthy View Post
    What is the Maximum number of names expected for one invoice say 5. If total names length is more than 256 we have to go for VBA coding.
    Per an invoice would be maybe 15 max ,usually more like 5-10. There could be a good few invoices going at a time though, maybe 150 different names split amongst 25 invoices.
    Last edited by Mr Stern 2; 04-23-2021 at 09:36 AM. Reason: quantity of names and invoices reduced significantly after review of data.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: If function with one result being a Dropdown choice based on criteria

    Ok .No problem. I have given Solution without any restriction.
    Helper range N1:R2 is used.

    Formula in N1 then copied across.
    Please Login or Register  to view this content.
    Formula in N2 then copied across.
    Please Login or Register  to view this content.
    For Validation.
    Select D23:D29.
    Data --> Validation
    List--> formula
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 04-23-2021 at 10:33 AM.

  5. #5
    Registered User
    Join Date
    09-27-2019
    Location
    Dublin
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    20

    Re: If function with one result being a Dropdown choice based on criteria

    That worked, with a minor work around for myself.
    The only shortfall, and probably as I was not clear, was for instances where they were not on the Tbl_2, I would want the name to auto populate. However as mentioned, it was not too hard for me to find a work around.

    Thanks so much, I never would have gotten there!

+ 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] Result variations based on the choice of drop-down menu
    By Berna11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2021, 02:35 PM
  2. How to lock a cell based on a choice in a dropdown box?
    By g0dmenuelz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2019, 04:28 PM
  3. COUNTIF based on Data Validation dropdown choice
    By EPosejpal in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2017, 03:44 PM
  4. Replies: 1
    Last Post: 10-26-2016, 08:54 PM
  5. [SOLVED] Display result based on Drop Down box list choice
    By SHANBURR in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-15-2015, 03:25 PM
  6. Replies: 7
    Last Post: 06-06-2013, 02:05 PM
  7. populating a dropdown based on choice from a previous dropdown
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2006, 03:20 PM

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