+ Reply to Thread
Results 1 to 2 of 2

Using the IF function with a text lookup table

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Angry Using the IF function with a text lookup table

    Hello,

    I am new to the power of Excel and would like to create a document using the logic below.

    I would like to setup a sales document where if a cell equals a specific text (already found in a lookup table) then the cell below it will be populated with additional information.

    So far I have tried to use the IF function but I get the error #VALUE!. I assume I am getting this error because I have selected multiple values. When I try my equation with only one IF statement instead of multiple it works fine.

    I know how to get the equation to work, but I (personally) think it looks bad and it seems like there would be another way to create the equation.

    Below is an example of what my excel spread sheet looks like (I have also attached the excel spread sheet if you would like to play with it.
    My spreadsheet.png

    What I thought I could do is make it so that if A2 equaled any of the lookup values that ended with ABC would prompt 'extra text' in cell A3.
    Wanted Equation.png

    However I get a #VALUE! instead.

    Now I know I can make a very long equation with LOTS of IFs....

    e.g. IF(A2=A12,C6,IF(A2=A13,C6,IF(A2=A14,C6,....

    but I hope there is an better equation to use.

    Can anyone help me with this equation. This is the last part of my spreadsheet that I need to complete to have a final product to release to the rest of my team.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Using the IF function with a text lookup table

    maybe like this as per my understanding.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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