PC Review


Reply
Thread Tools Rate Thread

countif and vlookup

 
 
LUIS ANGEL
Guest
Posts: n/a
 
      20th Sep 2010
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 With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      20th Sep 2010
Try

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

--

HTH

Bob

"LUIS ANGEL" <(E-Mail Removed)> wrote in message
news:bf398b36-d925-4083-89c7-(E-Mail Removed)...
> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
countif and vlookup LUIS ANGEL Microsoft Excel Worksheet Functions 2 24th Sep 2010 07:07 AM
countif and Vlookup pol Microsoft Excel Misc 2 15th Jul 2009 05:01 PM
vlookup and countif??? Joe Microsoft Excel Worksheet Functions 5 13th Mar 2006 10:33 AM
Re: Using IF COUNTIF and VLOOKUP together Frank Kabel Microsoft Excel Worksheet Functions 0 6th Sep 2004 02:09 PM
VLOOKUP AND COUNTIF =?Utf-8?B?SkxQ?= Microsoft Excel Misc 5 26th May 2004 08:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:59 AM.