Index Match with zeros and duplicate data.

Bob_ipc

Board Regular
Joined
Oct 18, 2017
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Hey all, Thanks for taking the time to review my question. I must be missing something simple but for whatever reason I am missing something.
In "Tab A" I have a list of "A" names, "B" dates and "C" total hours, In "Tab B" I have "A9:A39" each date of the selected month, "A1" the name I want to look up and "B9:B39" is where I would like the total hours to feed into based on the date and name.

Currently in "H9" I have =IFERROR(XLOOKUP(1,('TAB A'!A$5:A$39='TAB B'!G$4)*('TAB A'!B$5:B$39='TAB B'!F9),'TAB A'!C$9:D$39),"")

However there are some duplicate dates in "TAB A" Column B with corresponding data in Column "C" that I would like in "TAB B" Column "G" the formula that I have only takes the first line of data that it sees and ignores the data below it.

How can I get the SUM of Data in "TAB B" Column "G" based on the Name and Date from "TAB A"? I am sure I am missing something simple but my brain block is not letting me get through this, Any help would be really appriciated.

Thanks
 

Attachments

  • INDEX MATCH ISSUE.png
    INDEX MATCH ISSUE.png
    65.8 KB · Views: 10

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

You need to use the SUMIFS function. SUMIFS Function
 
Upvote 0
Hey Fluff,

Thanks for the reply, I have updated my account details thank you. Also I have tried SUMIFS as well and I get the same results for some reason?
 
Upvote 0
What was the sumifs formula you tried?
 
Upvote 0
I "Tab B" Cell "H9" I put =SUMIFS(tab a!C$5:C$39,tab a!B$5:B$39,tab b!G$4,tab a!B$5:B$39,tab a!F9)
 
Upvote 0
That looks as though the 1st B5:B39 should be col A instead.
 
Upvote 0
Yep that did it, Duh I knew I just had a stupid blockage in my head haha.

Thank you Fluff
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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