Vlookup

simonw

New Member
Joined
Mar 5, 2004
Messages
32
Hi:

Given a block of data the vlookup function will find the first occurrence that meets the given criteria: Is there a method to find the 2nd, 3rd 4th etc row of data that also meets the original criteria?

Example criteria: coating events on 4/9/06

Date Area Total
4/9/06 proc 150
4/9/06 coating 300
4/9/06 coating 150
4/9/06 coating 250


The vlookup function will find 4/9/06 coating 300 but miss the other two entries that meet the criteria in this example.
I cannot use the function Sumif as I need to see the events, and I would preferred not to use pivot tables or macros.

Many thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
50,645
Office Version
  1. 365
Platform
  1. Windows
simonw

Is this what you want? Formula in F3 is:
=SUMPRODUCT(--(A2:A5=F1),--(B2:B5=F2),C2:C5)

If not, post back with more details.
Mr Excel.xls
ABCDEFG
1DateAreaTotalDate04/09/2006
204/09/2006proc150AreaCoating
304/09/2006coating300Result700
404/09/2006coating150
504/09/2006coating250
6
Sumproduct
 

Forum statistics

Threads
1,141,626
Messages
5,707,491
Members
421,511
Latest member
mgroah1

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
Top