Quantcast
East Excel Forumla? - Beyond.ca - Car Forums
Results 1 to 18 of 18

Thread: East Excel Forumla?

  1. #1
    Join Date
    Mar 2011
    Location
    Calgary
    Posts
    315
    Rep Power
    16

    Default East Excel Forumla?

    Hey guys.

    Having issues with excel and it appears to be really easy but I just can’t seem to figure it out. I’m not the greatest with excel but though I’d be able to handle this...

    Basically I have a table with 3 columns of data. I have another spot where there will be 2 parts of that data inputted and I want it to pull the third piece of data from the table. The issue is there are multiple data points with the same value in one column.

    Blue. 2. Cow
    Blue. 3. Monkey
    Blue. 4. Dog
    Green. 5. Cat
    Green. 6. Fish
    Green. 7. Horse


    Basically I would have the colour and number in a table and then I want it to pull the animal name automatically.

    Any help is appreciated.

  2. #2
    Join Date
    Jan 2008
    Location
    Upstairs
    My Ride
    Natural Gas.
    Posts
    13,388
    Rep Power
    100

    Default

    I'd probably do it with a pile of if statements, but there is likely a better way.
    Quote Originally Posted by killramos View Post
    This quote is hidden because you are ignoring this member. Show Quote
    You realize you are talking to the guy who made his own furniture out of salad bowls right?

  3. #3
    Join Date
    Jul 2008
    Location
    Transnistria
    My Ride
    Exploded.
    Posts
    8,227
    Rep Power
    51

    Default

    =IFS

    Can help and then your lookup value could be a cell

  4. #4
    Join Date
    Apr 2004
    Location
    Calgary
    Posts
    2,093
    Rep Power
    44

    Default

    Make a separate sheet with a reference table that has one column showing the colour and number appended together, and the 2nd column with the animal name. For example
    colour+number animal
    blue2 cow
    blue3 monkey


    Then on your main table, concatenate the two input fields and do a vlookup against your reference table to pull in the animal name. Assuming your table has 3 columns - A= input 1 color, B= input 2 number, C= looked up value, your formula on cell C2 would be:
    =vlookup(A2&B2,<link to reference table>,2,false)

    (This means look up the concatenated value against the reference table, pull in the 2nd column, false means it must be an exact match.)

    then drag that down column C and voila.

    Takes some upfront work to build the reference table but then after that should be pretty foolproof.
    Last edited by sabad66; 04-26-2021 at 11:20 AM.

  5. #5
    Join Date
    Jul 2010
    Location
    Homeless
    My Ride
    Blue Dabadee
    Posts
    9,666
    Rep Power
    100

    Default

    New Table
    Column E Color
    Column F Animal (create E and F by taking your original data but removing duplicates to get unique table of color and animal, sort how you like)
    Column G sumifs( $B:$B, $A:$A, Column E, $C:$C, Column F)

    Not exact but you get the idea. In short SUMIFS should be what you want once you build your E,F table.

    Sabadd’s method probably more data scientist correct, but lookups and Concatenates seems overkill to me
    Last edited by killramos; 04-26-2021 at 11:20 AM.
    Originally posted by Thales of Miletus

    If you think I have been trying to present myself as intellectually superior, then you truly are a dimwit.
    Originally posted by Toma
    fact.
    Quote Originally Posted by Yolobimmer View Post
    This quote is hidden because you are ignoring this member. Show Quote

    guessing who I might be, psychologizing me with your non existent degree.

  6. #6
    Join Date
    Mar 2011
    Location
    Calgary
    Posts
    315
    Rep Power
    16

    Default

    Thanks guys. I did what Sabad suggested and it works. Seems weird that excel can’t match 2 columns but that’s alright.

  7. #7
    Join Date
    Jul 2010
    Location
    Homeless
    My Ride
    Blue Dabadee
    Posts
    9,666
    Rep Power
    100

    Default

    It can

    There are just many ways to skin a cat
    Last edited by killramos; 04-26-2021 at 11:44 AM.
    Originally posted by Thales of Miletus

    If you think I have been trying to present myself as intellectually superior, then you truly are a dimwit.
    Originally posted by Toma
    fact.
    Quote Originally Posted by Yolobimmer View Post
    This quote is hidden because you are ignoring this member. Show Quote

    guessing who I might be, psychologizing me with your non existent degree.

  8. #8
    Join Date
    Aug 2011
    Location
    Strathmore
    My Ride
    2005 Dirtymax
    Posts
    2,222
    Rep Power
    22

    Default

    Quote Originally Posted by lasimmon View Post
    This quote is hidden because you are ignoring this member. Show Quote
    Thanks guys. I did what Sabad suggested and it works. Seems weird that excel can’t match 2 columns but that’s alright.
    match and lookup but a lot more complicated.

  9. #9
    Join Date
    Apr 2006
    Location
    Eddy
    My Ride
    G37X Coupe
    Posts
    71
    Rep Power
    0

    Default

    Sorry I'm late to the party, and instead of Vlookup gonna preach the beauty of Xlookup since it's easier than the reference table method mentioned. Also been burned by vlookup too many times by someone messing around with a table and the the whole thing goes to shit

    =xlookup(A1&B1,A1:A6&B1:B6,C1:C6,"You did it wrong",0,1)
    Last edited by blainer; 04-26-2021 at 09:26 PM.

  10. #10
    Join Date
    Apr 2004
    Location
    Calgary
    Posts
    2,093
    Rep Power
    44

    Default

    Quote Originally Posted by blainer View Post
    This quote is hidden because you are ignoring this member. Show Quote
    Sorry I'm late to the party, and instead of Vlookup gonna preach the beauty of Xlookup since it's easier than the reference table method mentioned. Also been burned by vlookup too many times by someone messing around with a table and the the whole thing goes to shit

    =xlookup(A1&B1,A1:A6&B1:B6,C1:C6,"You did it wrong",0,1)
    Interesting! Never heard of xlookup until you mentioned it but looks like it is much more powerful than vlookup. Vlookup has worked great for me so far in my life but sometimes i have to adjust columns (i.e. moving the 'key' column to the very left), so this will make it easier.

  11. #11
    Join Date
    Mar 2011
    Location
    Calgary
    Posts
    315
    Rep Power
    16

    Default

    Quote Originally Posted by blainer View Post
    This quote is hidden because you are ignoring this member. Show Quote
    Sorry I'm late to the party, and instead of Vlookup gonna preach the beauty of Xlookup since it's easier than the reference table method mentioned. Also been burned by vlookup too many times by someone messing around with a table and the the whole thing goes to shit

    =xlookup(A1&B1,A1:A6&B1:B6,C1:C6,"You did it wrong",0,1)
    Wow This is exactly what I was looking for. Thanks!

  12. #12
    Join Date
    Sep 2012
    Location
    Calgary, AB
    Posts
    1,647
    Rep Power
    87

    Default

    Wait till you find out about zlookup.

  13. #13
    Join Date
    Apr 2008
    Location
    Stampede Central
    My Ride
    is pretty sharp lookin'
    Posts
    2,274
    Rep Power
    35

    Default

    Quote Originally Posted by suntan View Post
    This quote is hidden because you are ignoring this member. Show Quote
    Wait till you find out about zHookup.
    fixed

  14. #14
    Join Date
    Jul 2004
    Location
    YYC
    Posts
    4,315
    Rep Power
    85

    Default

    C'mon you dinosaurs...
    INDEX MATCH

    vlookup has also burnt me and I fixed a coworkers issues once with index match when vlookup and hlookup failed.

    Never used xlookup but I assume same as index match.

  15. #15
    Join Date
    Mar 2009
    Location
    Calgary
    My Ride
    Silverado
    Posts
    3,097
    Rep Power
    48

    Default

    Sounds like it was built to simplify index match
    Not sure if is reliable or not.

  16. #16
    Join Date
    Jul 2010
    Location
    Calgary
    My Ride
    BB6
    Posts
    40
    Rep Power
    0

    Default

    Index Match is already simple to use.

    I'd be worried about legacy compatibility issues if XLOOKUP is a new thing

  17. #17
    Join Date
    Apr 2004
    Location
    Calgary
    Posts
    2,093
    Rep Power
    44

    Default

    Yeah it’s really similar to index match. I typically use index match for my large power query data sets, but yesterday I tried xlookup instead and it was actually a bit easier to use. I think I’ll start using it more.

  18. #18
    Join Date
    Jul 2004
    Location
    YYC
    Posts
    4,315
    Rep Power
    85

    Default

    If I happen to forget it, I use this site.
    https://www.ablebits.com/office-addi...ction-vlookup/

    INDEX (column to return a value from, MATCH (lookup value, column to look up against, 0)

Similar Threads

  1. Need Excel help

    By Strider in forum Computers, Consoles, and other Electronics
    Replies: 1
    Latest Threads: 05-06-2004, 05:07 PM
  2. Microsoft Excel Question;

    By Wildcat in forum Computers, Consoles, and other Electronics
    Replies: 10
    Latest Threads: 10-15-2003, 11:06 PM
  3. Replies: 5
    Latest Threads: 08-12-2003, 10:25 PM
  4. Computer Trick II (for those that have excel 97)

    By Monster Hui in forum General
    Replies: 12
    Latest Threads: 04-04-2003, 12:37 PM
  5. microsoft excel???

    By Import_Girl in forum General
    Replies: 1
    Latest Threads: 03-31-2003, 01:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •