Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif and vlookup

Good afternoon.

Im trying to figure out the best way to use a formula for the
following:


my table has column A with a list of cities(these cities have many
entries in the list) and column D with a list of codes(yes or no,
just
to simplify the example.). this is on sheet 1.


in sheet 2 i want to be able to place a formula that would look up
for
example how many new york entries have a yes on column D.


I was trying something like:


=countif(vlookup(sheet1!"new york",sheet1!$a$1:$d$200,4,false)


but this will olny stop at the first one and i want to know how many
in total.


Any thoughts? if there is a better way, please let me know.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default countif and vlookup

Try

=SUMPRODUCT(--(A1:A100="New York"),--(D1:D100="Yes"))

--

HTH

Bob

"LUIS ANGEL" wrote in message
...
Good afternoon.

Im trying to figure out the best way to use a formula for the
following:


my table has column A with a list of cities(these cities have many
entries in the list) and column D with a list of codes(yes or no,
just
to simplify the example.). this is on sheet 1.


in sheet 2 i want to be able to place a formula that would look up
for
example how many new york entries have a yes on column D.


I was trying something like:


=countif(vlookup(sheet1!"new york",sheet1!$a$1:$d$200,4,false)


but this will olny stop at the first one and i want to know how many
in total.


Any thoughts? if there is a better way, please let me know.



Reply
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
Countif/Vlookup juancarlos Excel Discussion (Misc queries) 2 September 23rd 09 10:43 PM
countif and Vlookup pol Excel Discussion (Misc queries) 2 July 15th 09 05:01 PM
COUNTIF and VLOOKUP mpenkala Excel Worksheet Functions 3 April 10th 08 10:20 PM
countif w/vlookup sjl Excel Discussion (Misc queries) 2 February 16th 07 03:05 PM
Countif or Vlookup praveen_khm Excel Worksheet Functions 1 February 3rd 06 08:17 PM


All times are GMT +1. The time now is 05:08 PM.

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

About Us

"It's about Microsoft Excel"