index match vlookup hlookup date month dilemma

twl2009

Board Regular
Joined
Jan 7, 2016
Messages
247
Hi, I am trying to find a way to search a large sheet of data and then sum the values based on two criteria.
For example I need to return the sum of colB for each Orange in colC in the month of "Jul" colA, IE 3 in this case.
The month will be expressed MMM, but colA will be as below.
Is this possible with a combo of index match and lookup?



_____A_____B___C
1 2018-08-03 3 Orange
2 2018-07-18 1 Pear
3 2018-07-09 2 Orange
4 2018-07-03 1 Orange
5 2018-06-27 1 Pear
6 2018-06-01 2 Orange

Thanks Twl
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Like this for example...

=SUMIFS(B:B,C:C,"orange",A:A,">="&"2018-07-01",A:A,"<="&EOMONTH(
"2018-07-01",0))
 
Upvote 0
Exactly, except col A has date fields 'yyyy-mm-dd', but the value to lookup, IE july, will be in another cell, lets say D1 and will be MMM. Is that possible?
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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