Forum Discussion

EnvironmentalScientist's avatar
EnvironmentalScientist
Copper Contributor
Jul 25, 2021
Solved

Giant =IF statement

Excel Professionals,   I am having trouble solving a certain function using excel. My end goal is to due the following,   IF, any row in the A column has X then in row 2 A through Q shall have th...
  • mathetes's avatar
    mathetes
    Jul 26, 2021

    EnvironmentalScientist 

     

    FYI: The "3 condition condition", and my questions about it, came from your first post, where you gave this as your example:

    Column A row 7, 32, and 56 all have the value CCZJV-001. Based on this value I need columns B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q to all output different information.

     

    Anyway, based on what you're now saying, I will suggest that you work to rid yourself of your C++ background---one of the biggest hindrances to learning Excel can be a background in a programming language; it tempts you (I have experienced it, and seen it many times) to think in programming/procedural terms and overlook the power of Excel.'s built-in functions.

     

    From how you're now describing things, I'm going to suggest that you look into VLOOKUP, XLOOKUP, the combination of INDEX and MATCH--any one of those methods being a possible solution. These are ways to access a table and extract information from it. What you've described sounds like an ideal application for one of those, and a LOT easier to write than a complex IF conditional. 

     

    To take your partial example from the most recent post, you could get CCZJV-003 from column A, and then use it as the reference to a table and get the values for columns B through Q from that table.

     

    Here's a good link--there are also many YouTube videos--on VLOOKUP and how to use it. https://exceljet.net/excel-functions/excel-vlookup-function

     

     

     

Resources