Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Counting the appearance of a String in a Row

Hello,

I want to analyse following table:

Name PNumber Amount
-----------------------
Gear |GBOX | 1
Tire |TIRE | 1
Gx12 |GBOX | 3
Gx13 |GBOX | 4
...

How can I find out how many times GBOX appeared in ROW 2?
And how many Articels I have with Pnumber GBOX?


Thanks in advance

Matthias

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Counting the appearance of a String in a Row



How can I find out how many times GBOX appeared in ROW 2?

=COUNTIF(B2:B5,"GBOX")

And how many Articels I have with Pnumber GBOX?

=SUMPRODUCT((A2:A5<"")/COUNTIF(A2:A5,A2:A5),--(B2:B5="GBOX"))

Regards,
Stefi

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Counting the appearance of a String in a Row

=COUNTIF(B2:B5,"GBOX")

=SUMPRODUCT(--(B2:B5="GBOX"),C2:C5)


" wrote:

Hello,

I want to analyse following table:

Name PNumber Amount
-----------------------
Gear |GBOX | 1
Tire |TIRE | 1
Gx12 |GBOX | 3
Gx13 |GBOX | 4
...

How can I find out how many times GBOX appeared in ROW 2?
And how many Articels I have with Pnumber GBOX?


Thanks in advance

Matthias


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
List File Properties - Author SS Excel Worksheet Functions 1 June 23rd 06 04:56 PM
Counting number of time a character appears in a string Henrik Excel Worksheet Functions 5 October 20th 05 11:00 PM
Excel - counting cells containing a text string Pegasus Host Excel Worksheet Functions 4 February 12th 05 07:31 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Counting Elements in a String carl Excel Worksheet Functions 2 December 31st 04 02:16 PM


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