COUNTIFS with VLOOKUP

slinky

Active Member
Joined
Dec 19, 2008
Messages
294
Perhaps a misleading title, but here's the formula I want to use...

=COUNTIFS(APM!B:B,Main_Sheet!B6,VLOOKUP(APM!A:A,INFO!A:B,2,0),">="&I1-31)

(ignore the fact that it generates an error, you should get the gist of what I'm attempting to do from the layout of it)..

The issue is, of course, that VLOOKUP will only return the first result that it finds, this is an issue as I'm attempting to carry out that lookup on a table that contains approx 1000 rows..

This is all in the name of simplifying an import process to remove the requirement to generate VLOOKUPs for date information from the INFO tab..

Info Contains the following :

A B C
1 ID DATE SERVER
2 1 01/08/2010 FISH
3 2 01/08/2010 FISH


APM Contains the following
A B
1 ID VERSION
2 1 5.00
3 2 4.00


Main_Sheet contains the formula I'm attempting to use..
I1 =TODAY()
B6 = 5.00

brain hurts.. I'm sure I should be using something along the lines of Index/Match/Offset to get what I need, but I'll be damned if I can fathom how to use them today!

Shout if you need any more info..

TIA..
 
I've tried several things, but I haven't managed to return an array of the relevant rows in Info. It may be possible, but I don't know how. Sorry.
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Just as a quick update, I've admitted defeat and written a long and dirty macro to do the data import and generate all of the VLOOKUP queries..

If anyone does find a way of doing what I was after, I'd be interested to hear what you have to say..

TTFN..
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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