LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bradley
 
Posts: n/a
Default VLOOKUP used only when IF condition is met

I am trying to write and IF statement with a VLOOKUP. I only want the value
to be returned when the IF column is equal to a set value.

For example, I have a data worksheet which has months and document #'s and
total hits. I am creating another worksheet that wil search the data page
and return the number of hits for the document, but I want to be able to
compile by month. So when month is equal to 200501 I want the value for the
contract to be returned.

This is what I have written:

=IF(('DOC TOTALS'!C1=200501),VLOOKUP(E2,'DOC TOTALS'!A:C,2,FALSE),0)

But this only will search the C1 row to see if it is =200501, I want the
whole column to be searched.

Thank you
Bradley
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
Vlookup using a range condition John Excel Worksheet Functions 4 August 26th 05 08:40 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup in two condition val via OfficeKB.com Excel Discussion (Misc queries) 1 March 18th 05 08:12 AM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 03:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"