Finding value in a table and getting the index - excel

I'm trying to find a value on a table, and getting an index on the same row. Something like this:
I have a table like this:
name id1 id2 id3
Jorg pear -- apple
Anna lemon banana --
and on another page I have this:
pear
apple
lemon
banana
And I want the match like this
pear jorg
apple jorg
lemon anna
banana anna
Does anyone know a quick way to do it? I tried with match to find the row and then triying to find the cell but I wasn't able to do it.

Use AGGREGATE not MATCH:
=INDEX(A:A,AGGREGATE(15,7,ROW($B$2:$D$3)/($B$2:$D$3=F2),1))

Related

Excel Combine Rows with Partially Filled Columns

Would anyone be able to assist me with the following table?
Name
Apple
Pear
Banana
Bob
Yes
Bob
Yes
Alice
Yes
Alice
Yes
John
The goal is to have the all these rows merge/join and fill in all empty columns if the unique name is present. See below for the end goal.
Name
Apple
Pear
Banana
Bob
Yes
Yes
Alice
Yes
Yes
John
Please note that I am restricted in terms of using only Excel (2016) with no ability to add add-ons.
Much appreciated!
You can do it manually easily in 3 steps:
Replace all "Yes" values with number 1
Inside "Data" tab, Consolidate data
Replace all number 1 with "Yes"
Take a look at the video:
And probably you can record a macro with this for sure and make it instantly.

Mix value of a cell with each value of other cell [duplicate]

This question already has answers here:
Generate All Permutations in Excel using LAMBDA
(4 answers)
Closed 12 months ago.
Please forgive me if this sounds stupid, I have 0 excel experience under my belt but I am trying to help a friend out with his file.
I am wondering if it is possible to mix(concatenate or other type) the value of A1 with all the values of B column and C column. Example:
A Apple, Pear, Grape
B Red, Yellow, Blue
C Large, Medium, Small
Desired output:
Column D output: Apple Red Large, Apple Red Medium, Apple Red Small, Apple Yellow Large, Apple Yellow Medium, Apple Yellow Small, Pear Red Large, Pear Red Medium Etc.
I am looking to combine the values from A column with each of the values from B and C column as shown above. Is it possible or am I just complicating things ?
Thank you in advance for your time,
Dan
=CONCAT(B6," ",C6," ",D6)

How to sum through two tables in Excel

I am looking for help to sum values in a table using a mapping table..
Tried Xlookup and sumif. Not sure where I am going wrong.
Simplifying it in an example
Basically, I have two tables.
Food type
Food
Fruits
Apple
Fruits
Orange
Vegetable
Spinach
Vegetable
Fenugreek
Food
Cost
Apple
$10
Orange
$15
Spinach
$20
Fenugreek
$10
So, if my input is Foodtype = Fruits, then I should get an answer of $25 (as it will sum up Apple and Orange)..
The combination of sumifs and xlookup is only giving one answer ($10) whereas I need $25.
please let me know.
I cannot combine the tables, as I have to use the first mapping table in multiple places.
Thankyou!
You can try:
=SUM(SUMIF(E2:E5,FILTER(B2:B5,A2:A5=I2),F2:F5))
This uses XLOOKUP and SUM.
=SUM(XLOOKUP(FILTER($B$2:$B$11,$A$2:$A$11=G2),$D$2:$D$5,$E$2:$E$5))

Subtract two range values for matching ones excel

I have come across of the problem that, I don't know how to solve in efficient way. So I have two tables like these:
Table 1
Company Score
Apple 10
Banana 5
Kiwi 4
Pineapple 2
Table 2
Company Score
Apple 4
Pineapple 3
Kiwi 2
Strawberry 1
Then in my result table in which I have company names listed in one column, like below. Right next to this I would like to show the differences which should be the first table values - the second table values where company names match(the list can be in different order that is why, I need to check it before subtracting).
Table 3
Company Result
Kiwi 2
Apple 6
Banana -5
Pineapple -1
I can do this with nested IF function to check every cell one by one, but I assume there might be more efficient way. I wonder if you have one.
Thanks to #ScottCraner's comment, I solved it with two sumifs subtracted from one another with this formula. I entered this in Column D66 and dragged down
=SUMIF($C$36:$C$45;$C$66:$C$75;D$36:D$45)-SUMIF($C$51:$C$60;$C$66:$C$75;D$51:D$60)
1st Sum if: Where C36-C45 is my first list of companies, C66-C75 is the list of companies that I have in the results table, D36 -D45 is the score list from the first table.
2nd Sum if: Where C51-C60 is my second list of companies, C66-C75 is the list of companies that I have in the results table, D51 -D60 is the score list from the second table.

extracting multiple text in different cells into one cell

I need assistance in seeing if there’s a formula to the below excel dilemma:
(Note - dash lines are used as separators indicating different column)
Currently I have a spread sheet with the below data: 2 columns (A--B)
Abby -- apple
Abby -- orange
Abby -- lime
Bob -- orange
Bob -- apple
Carol-- lime
Carol-- orange
David-- apple
Is there a formula that tells Excel to pick up identical text in Column A and consolidate the respective Column B items into one Cell in Column C? : please find below the end result that I’m after:
Abby -- apple ---- apple orange lime
Abby -- orange
Abby -- lime
Bob -- orange ---- orange apple
Bob -- apple
Carol-- lime ---- lime orange
Carol-- orange
David-- apple ---- apple
Thank you in advance.
Regards,
Kit
You may be able to modify the answer to this question to fit your needs. It's more complex than what you need since you are only matching on a single column instead of two or more, but the underlying concept is actually the same.

Resources