+ Reply to Thread
Results 1 to 4 of 4

New Guy with Formula Question - 2 values return a third

  1. #1
    Registered User
    Join Date
    04-14-2021
    Location
    Washington State
    MS-Off Ver
    MS365 for Business
    Posts
    1

    New Guy with Formula Question - 2 values return a third

    Howdy all. New guy here. This has likely been asked before, but I don't know what to ask for.

    I have been using Excel for decades, but am only now trying to use conditional formulas. I hope this is simple for you experts.

    I have 3 columns on my attached example.

    'A' is a dropdown list of UPS models (separate tab of DD tables "DropDowns")

    'B' is corresponding External Battery Cabinet models (EBC) for extended runtime

    'C' is the quantity of EBCs needed.

    What I want to have happen:

    ----------------

    1) Choose a UPS model from dropdown in 'A'
    2) IF an EBC is needed for more runtime, chose a quantity from dropdown in 'C'
    3) IF 'C' is greater than 0 (zero), populate 'B' with appropriate EBC model matched with UPS model (eg: DropDowns!B10)

    I don't want 'B' populated unless 'C' is greater than zero

    ----------------


    OBSERVE that the UPS part numbers have a dash ("-") in them, minus to excel, likely causing at least some of my formula barfs. (eg: GXT5-5000MVRT4UXLN )

    I started my dropdown tables with a blank cell to ensure I can have a blank, no value cell. Will that cause problems?




    I have been looking around for about a week, off and on as time permits, and don't know what to search for..at least for a result that works.

    Thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-11-2021
    Location
    CANADA
    MS-Off Ver
    Excel 365
    Posts
    40

    Re: New Guy with Formula Question - 2 values return a third

    Maybe this...

    In B2: =IFERROR(IF(C2>0,VLOOKUP(A2,DropDowns!B:C,2,0),""),"")

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,168

    Re: New Guy with Formula Question - 2 values return a third

    In B2 try:

    =IF(C2>0,XLOOKUP(A2,DropDowns!$B$3:$B$23,DropDowns!$C$3:$C$23,"None Found",0),"")

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: New Guy with Formula Question - 2 values return a third

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Dave

+ 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. Formula that returns only values of cells and doesnt return blank/NA values
    By pageandrewr1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2016, 12:32 PM
  2. [SOLVED] Formula to RANK groups of Values and return B+? or B-? values
    By hammer2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-27-2015, 07:48 AM
  3. Replies: 0
    Last Post: 04-04-2013, 04:52 PM
  4. Matching Values - Formula Question
    By Girish Punjabi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2013, 01:59 PM
  5. formula to return several values
    By n1kk1 in forum Excel General
    Replies: 4
    Last Post: 01-24-2012, 07:20 PM
  6. Replies: 8
    Last Post: 05-14-2006, 12:30 PM
  7. formula for range values question
    By webadict2be in forum Excel General
    Replies: 4
    Last Post: 02-06-2006, 08:49 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