Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default Counting two numbers

i need to post 2 dates in a single cell (eg. 15 & 20) and at the end of that
row there is a count formula covering this cell.
How to post the dates in the single cell, so that the count formula counts 2
dates
there is no scope to post in next cell.
thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 150
Default Counting two numbers

Assuming that B2 contains 15 & 20, and G2 contains the count formula,
try the following...

1) Select G2

2) Insert Name Define

Name: Result

Refers to:

=EVALUATE("{"&SUBSTITUTE($B2,"&",",")&"}")

3) Enter the following formula in G2...

=COUNT(Result)

To include another range with this count, try...

=COUNT(Result,Range)

Hope this helps!

In article ,
vijaydsk1970 wrote:

i need to post 2 dates in a single cell (eg. 15 & 20) and at the end of that
row there is a count formula covering this cell.
How to post the dates in the single cell, so that the count formula counts 2
dates
there is no scope to post in next cell.
thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default Counting two numbers

Dear Domenic
thanks for your suggestion.
i could able to get first part of your advice.
In the 2nd part could you explain a little bit further
I am trying that in a sheet looks like this.
apr may jun ..... cum
prod1 prod2 prod1 prod2 prod1 prod2 prod1 prod2
15 &20 20 20 12 10 3
=count(a1,c1,e1,...)
thanks in advance

"Domenic" wrote:

Assuming that B2 contains 15 & 20, and G2 contains the count formula,
try the following...

1) Select G2

2) Insert Name Define

Name: Result

Refers to:

=EVALUATE("{"&SUBSTITUTE($B2,"&",",")&"}")

3) Enter the following formula in G2...

=COUNT(Result)

To include another range with this count, try...

=COUNT(Result,Range)

Hope this helps!

In article ,
vijaydsk1970 wrote:

i need to post 2 dates in a single cell (eg. 15 & 20) and at the end of that
row there is a count formula covering this cell.
How to post the dates in the single cell, so that the count formula counts 2
dates
there is no scope to post in next cell.
thanks in advance.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 150
Default Counting two numbers

I'm a little unclear, but let's assume that A1:E1 contains your data...

If you want to count A1, B1, C1, D1, and E1, try...

=SUMPRODUCT(--(A1:E1<""),LEN(A1:E1)-LEN(SUBSTITUTE(A1:E1,"&",""))+1)

If you want to count every 2nd column (A1, C1, E1), try...

=SUMPRODUCT(--(A1:E1<""),--(MOD(COLUMN(A1:E1)-COLUMN(A1),2)=0),LEN(A1:E1
)-LEN(SUBSTITUTE(A1:E1,"&",""))+1)

Hope this helps!

In article ,
vijaydsk1970 wrote:

Dear Domenic
thanks for your suggestion.
i could able to get first part of your advice.
In the 2nd part could you explain a little bit further
I am trying that in a sheet looks like this.
apr may jun ..... cum
prod1 prod2 prod1 prod2 prod1 prod2 prod1 prod2
15 &20 20 20 12 10 3
=count(a1,c1,e1,...)
thanks in advance

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
counting numbers dmack Excel Discussion (Misc queries) 6 January 24th 07 07:50 PM
Counting Numbers Funkydan Excel Discussion (Misc queries) 3 November 19th 06 10:13 AM
counting if two columns contain the same numbers aurion22 Excel Worksheet Functions 2 February 27th 06 02:25 PM
counting numbers cj21 Excel Discussion (Misc queries) 6 February 16th 06 11:28 PM
Counting numbers cj21 Excel Discussion (Misc queries) 10 February 16th 06 06:55 PM


All times are GMT +1. The time now is 07:47 AM.

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"