Index query

scoobyblue

Active Member
Joined
Jun 30, 2004
Messages
380
I have the following formula that is returning VALUE!

{=INDEX($E$11:$F$11104,$E$6,MATCH(1,($D$11:$D$11104>=$D$6)*($D$11:$D$11104<=$D$8),1))}

Columns E & F are populated with surnames, E6 is the surname that is being identified (counted), column D are the Date values, i.e. Fri-17-Feb-12, D6 is the start date (occurrences of surname on or after this date), and D8 is end date. Values in E6, D6 & D8 are those that can be manually amended.

The idea being to count the occurrences of a given surname between the selected dates. Thanks for your help.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I have the following formula that is returning VALUE!

{=INDEX($E$11:$F$11104,$E$6,MATCH(1,($D$11:$D$11104>=$D$6)*($D$11:$D$11104<=$D$8),1))}

Columns E & F are populated with surnames, E6 is the surname that is being identified (counted), column D are the Date values, i.e. Fri-17-Feb-12, D6 is the start date (occurrences of surname on or after this date), and D8 is end date. Values in E6, D6 & D8 are those that can be manually amended.

The idea being to count the occurrences of a given surname between the selected dates. Thanks for your help.

Control+shift+enter, not just enter:

=SUM(IF($D$11:$D$11104>=$D$6,IF($D$11:$D$11104<=$D$8,IF($E$11:$F$11104=$E$6,1))))
 
Upvote 0
scoobyblue,

Try this....

=SUMPRODUCT(--(E11:F11104=E6),--($D$11:$E$11104>=$D$6),--($D$11:$E$11104<=$D$8))
 
Upvote 0

Forum statistics

Threads
1,216,118
Messages
6,128,939
Members
449,480
Latest member
yesitisasport

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