Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default If (A1 = "ValueA" & C1 = "ValueB") return the quantity of matches

Using data looking something similar to below....

Column A Column B Column C
Red 1 Santa
Blue 1 Santa
Red 1 Elf

What formula do I use if I want to count the amount of times Col A = Red and
Col C = Santa?

Had no luck so far using variations of....
=SUM(IF(Data!H:H="Red",IF(Data!J:J="Santa",1,0)))

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default If (A1 = "ValueA" & C1 = "ValueB") return the quantity of matches

Using data looking something similar to below....

Column A Column B Column C
Red 1 Santa
Blue 1 Santa
Red 1 Elf

What formula do I use if I want to count the amount of times Col A = Red
and
Col C = Santa?

Had no luck so far using variations of....
=SUM(IF(Data!H:H="Red",IF(Data!J:J="Santa",1,0)))


Try this...

=SUMPRODUCT((A1:A1000="Red")*(C1:C1000="Santa"))

Use a number larger than the largest row of data you will ever have in place
of my 1000s.

Rick

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default If (A1 = "ValueA" & C1 = "ValueB") return the quantity of matc

THANK YOU!

I've been racking my brains for a while trying to get this to work.
Appreciate the help

"Rick Rothstein (MVP - VB)" wrote:

Using data looking something similar to below....

Column A Column B Column C
Red 1 Santa
Blue 1 Santa
Red 1 Elf

What formula do I use if I want to count the amount of times Col A = Red
and
Col C = Santa?

Had no luck so far using variations of....
=SUM(IF(Data!H:H="Red",IF(Data!J:J="Santa",1,0)))


Try this...

=SUMPRODUCT((A1:A1000="Red")*(C1:C1000="Santa"))

Use a number larger than the largest row of data you will ever have in place
of my 1000s.

Rick


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
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
create links to check boxes marked "good" fair"and "bad" pjb Excel Worksheet Functions 3 April 20th 06 02:17 AM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 01:38 AM.

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"