Question: INDEX and MATCH

clandestino800

New Member
Joined
Mar 14, 2021
Messages
19
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi guys!

I am struggeling with a formula, which i i think it can be solved with index and match.
In Sheet1 there are three columns (Names, Proj and Amount) and in Sheet2 I have Proj and the names (vertically)
and I'm trying to get the amounts from Sheet1 assigned to the name.

I'd be very thankful for any help!
Randall

Sheet1
1.PNG


Sheet2
2.PNG
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi & welcome to MrExcel.
How about
Excel Formula:
=IFNA(INDEX(Sheet1!$C$2:$C$100,MATCH($A2&"|"&B$1,Sheet1!$B$2:$B$100&"|"&Sheet1!$A$2:$A$100,0)),"")
this may need to be confirmed with Ctrl Shift Enter depending on which version of Xl you are using it in.
 
Upvote 0
You can also try SUMIFS

Assuming search values in Sheet2 are : Projetcs at A2:A5 ; Names at B1:M1

Try
B2 copied across and down
=SUMIFS(Sheet1!$C:$C,Sheet1!$A:$A,B$1,Sheet1!$B:$B,$A2)

M.
 
Upvote 0
Thanks a lot ! I used a mix of your recommendations and achieved what I needed!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top