Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Trying to develop equation

I have two columns, one has variable data while the other is x/empty. I am
trying to count the number of "x" for a certain variable. Below is an
example of the set up:

Size Replace
12 x
12
12 x
18 x
18 x
18 x
24
24
24 x

The formula cells would equate to the total column below:

Size Total
12 2
18 3
24 1

Any help would be great, Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Trying to develop equation

Maybe

=SUMPRODUCT((A1:A19=12)*(B1:B19="X"))

Mike

"bike-board-hike" wrote:

I have two columns, one has variable data while the other is x/empty. I am
trying to count the number of "x" for a certain variable. Below is an
example of the set up:

Size Replace
12 x
12
12 x
18 x
18 x
18 x
24
24
24 x

The formula cells would equate to the total column below:

Size Total
12 2
18 3
24 1

Any help would be great, Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Trying to develop equation

Adjust your ranges accordingly (they both must be the same size)...

=SUMPRODUCT((A2:A1000=12)*(B2:B1000="x"))

Just change the 12 as needed (or use a cell reference).

--
Rick (MVP - Excel)


"bike-board-hike" wrote in
message ...
I have two columns, one has variable data while the other is x/empty. I am
trying to count the number of "x" for a certain variable. Below is an
example of the set up:

Size Replace
12 x
12
12 x
18 x
18 x
18 x
24
24
24 x

The formula cells would equate to the total column below:

Size Total
12 2
18 3
24 1

Any help would be great, Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Trying to develop equation

I found this equation on contextures.com after the post, what is the
difference? They both seem to work properly.

=SUMPRODUCT(--($F$8:$F$207=12),--(I8:I207="x"))

Thanks




"Mike H" wrote:

Maybe

=SUMPRODUCT((A1:A19=12)*(B1:B19="X"))

Mike

"bike-board-hike" wrote:

I have two columns, one has variable data while the other is x/empty. I am
trying to count the number of "x" for a certain variable. Below is an
example of the set up:

Size Replace
12 x
12
12 x
18 x
18 x
18 x
24
24
24 x

The formula cells would equate to the total column below:

Size Total
12 2
18 3
24 1

Any help would be great, Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default Trying to develop equation

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

J.E McGimpsey (explains the double negation)
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"bike-board-hike" wrote in message
...
I found this equation on contextures.com after the post, what is the
difference? They both seem to work properly.

=SUMPRODUCT(--($F$8:$F$207=12),--(I8:I207="x"))

Thanks




"Mike H" wrote:

Maybe

=SUMPRODUCT((A1:A19=12)*(B1:B19="X"))

Mike

"bike-board-hike" wrote:

I have two columns, one has variable data while the other is x/empty.
I am
trying to count the number of "x" for a certain variable. Below is an
example of the set up:

Size Replace
12 x
12
12 x
18 x
18 x
18 x
24
24
24 x

The formula cells would equate to the total column below:

Size Total
12 2
18 3
24 1

Any help would be great, Thanks





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Trying to develop equation

Thanks for the links, they were really helpful

"Bernard Liengme" wrote:

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

J.E McGimpsey (explains the double negation)
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"bike-board-hike" wrote in message
...
I found this equation on contextures.com after the post, what is the
difference? They both seem to work properly.

=SUMPRODUCT(--($F$8:$F$207=12),--(I8:I207="x"))

Thanks




"Mike H" wrote:

Maybe

=SUMPRODUCT((A1:A19=12)*(B1:B19="X"))

Mike

"bike-board-hike" wrote:

I have two columns, one has variable data while the other is x/empty.
I am
trying to count the number of "x" for a certain variable. Below is an
example of the set up:

Size Replace
12 x
12
12 x
18 x
18 x
18 x
24
24
24 x

The formula cells would equate to the total column below:

Size Total
12 2
18 3
24 1

Any help would be great, Thanks




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
Develop formula for cash flow sgl Excel Worksheet Functions 3 January 2nd 08 03:46 PM
how to develop a formula where assumed value in a cell is used to V. K abbey Excel Worksheet Functions 3 August 21st 07 07:05 PM
How do I develop a forum in Excel? cloud Excel Discussion (Misc queries) 0 March 10th 06 06:39 AM
I need to develop an EFAS table Leandra Setting up and Configuration of Excel 3 September 3rd 05 08:55 PM
Does anyone know how to develop forumulas or algorithms for various cells? Chris Hoff Excel Worksheet Functions 1 November 21st 04 11:52 PM


All times are GMT +1. The time now is 04:57 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"