#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default count only if

=SUM(IF(Sheet1!$K$5:$K$705=A12,IF(Sheet1!$M$5:$M$7 05=1,"PSP*")))

I'm trying to get a number value on Sheet 2 for how many times a cell starts
with PSP but only if two cells over it states a predefined user name on
Sheet2 hence the A12 in the formula. Can anyone point me in the right
direction? I've asked alot of people and it seems to stump them. even when
they think they can do it it ussually results in an error or incorrect value.

exsample:

A B C
Joe 123 PSP12321323
Joe 132 INC12123424
Jack 123 PSP12132342
Jack 132 PSP12123424
Jack 123 INC12324213


The result I'm looking for is how many times does PSP show up next to a
given user


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count only if

Try this:

=SUMPRODUCT(--(A1:A5=A12),--(LEFT(C1:C5,3)="PSP"))

Biff

"Aaron" wrote in message
...
=SUM(IF(Sheet1!$K$5:$K$705=A12,IF(Sheet1!$M$5:$M$7 05=1,"PSP*")))

I'm trying to get a number value on Sheet 2 for how many times a cell
starts
with PSP but only if two cells over it states a predefined user name on
Sheet2 hence the A12 in the formula. Can anyone point me in the right
direction? I've asked alot of people and it seems to stump them. even when
they think they can do it it ussually results in an error or incorrect
value.

exsample:

A B C
Joe 123 PSP12321323
Joe 132 INC12123424
Jack 123 PSP12132342
Jack 132 PSP12123424
Jack 123 INC12324213


The result I'm looking for is how many times does PSP show up next to a
given user




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default count only if

I adjusted what you sugested with :

=SUMPRODUCT(--(Sheet1!K5:K705=A12),--(LEFT(Sheet1!M5:M999,3)="PSP"))

to fit my particular spreadsheet. came back with "#VALUE!"
I must be missing an important step in making it work in my spread sheet.

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A1:A5=A12),--(LEFT(C1:C5,3)="PSP"))

Biff

"Aaron" wrote in message
...
=SUM(IF(Sheet1!$K$5:$K$705=A12,IF(Sheet1!$M$5:$M$7 05=1,"PSP*")))

I'm trying to get a number value on Sheet 2 for how many times a cell
starts
with PSP but only if two cells over it states a predefined user name on
Sheet2 hence the A12 in the formula. Can anyone point me in the right
direction? I've asked alot of people and it seems to stump them. even when
they think they can do it it ussually results in an error or incorrect
value.

exsample:

A B C
Joe 123 PSP12321323
Joe 132 INC12123424
Jack 123 PSP12132342
Jack 132 PSP12123424
Jack 123 INC12324213


The result I'm looking for is how many times does PSP show up next to a
given user





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count only if

=SUMPRODUCT(--(Sheet1!K5:K705=A12),--(LEFT(Sheet1!M5:M999,3)="PSP"))

The ranges *must* be the same size.

Biff

"Aaron" wrote in message
...
I adjusted what you sugested with :

=SUMPRODUCT(--(Sheet1!K5:K705=A12),--(LEFT(Sheet1!M5:M999,3)="PSP"))

to fit my particular spreadsheet. came back with "#VALUE!"
I must be missing an important step in making it work in my spread sheet.

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A1:A5=A12),--(LEFT(C1:C5,3)="PSP"))

Biff

"Aaron" wrote in message
...
=SUM(IF(Sheet1!$K$5:$K$705=A12,IF(Sheet1!$M$5:$M$7 05=1,"PSP*")))

I'm trying to get a number value on Sheet 2 for how many times a cell
starts
with PSP but only if two cells over it states a predefined user name on
Sheet2 hence the A12 in the formula. Can anyone point me in the right
direction? I've asked alot of people and it seems to stump them. even
when
they think they can do it it ussually results in an error or incorrect
value.

exsample:

A B C
Joe 123 PSP12321323
Joe 132 INC12123424
Jack 123 PSP12132342
Jack 132 PSP12123424
Jack 123 INC12324213


The result I'm looking for is how many times does PSP show up next to a
given user







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default count only if


I think that becuase I'm trying to display the results on Sheet2 when the
data is on sheet1 is the reason why some of these suggestions don't work. in
theory they work, but when i put it into practise adjusting where to look I
must be messing somehitng up along the way. Thanks in advance for any advise
you may have.

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A1:A5=A12),--(LEFT(C1:C5,3)="PSP"))

Biff

"Aaron" wrote in message
...
=SUM(IF(Sheet1!$K$5:$K$705=A12,IF(Sheet1!$M$5:$M$7 05=1,"PSP*")))

I'm trying to get a number value on Sheet 2 for how many times a cell
starts
with PSP but only if two cells over it states a predefined user name on
Sheet2 hence the A12 in the formula. Can anyone point me in the right
direction? I've asked alot of people and it seems to stump them. even when
they think they can do it it ussually results in an error or incorrect
value.

exsample:

A B C
Joe 123 PSP12321323
Joe 132 INC12123424
Jack 123 PSP12132342
Jack 132 PSP12123424
Jack 123 INC12324213


The result I'm looking for is how many times does PSP show up next to a
given user







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default count only if

Looks like that did the trick. Lol.. note to self. must be the same range.
for some stupid reason i didn't think it mattered. Guess thats why I'm on
here asking questions and your on the answering side.

Many thanks, you don't know how much time you've saved me :-)
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count only if

You're welcome. Thanks for the feedback!

Biff

"Aaron" wrote in message
...
Looks like that did the trick. Lol.. note to self. must be the same range.
for some stupid reason i didn't think it mattered. Guess thats why I'm on
here asking questions and your on the answering side.

Many thanks, you don't know how much time you've saved me :-)



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 195
Default count only if

Do you mean

=SUMPRODUCT(--(Sheet1!K5:K705=A12),--(LEFT(Sheet1!M5:M999,3)="PSP"))

should be

=SUMPRODUCT(--(Sheet1!K5:K999=A12),--(LEFT(Sheet1!M5:M999,3)="PSP"))

otherwise the function won't work?

Do let me know. Thankyou!

Shail


On Mar 23, 11:34 am, "T. Valko" wrote:
You're welcome. Thanks for the feedback!

Biff

"Aaron" wrote in message

...



Looks like that did the trick. Lol.. note to self. must be the same range.
for some stupid reason i didn't think it mattered. Guess thats why I'm on
here asking questions and your on the answering side.


Many thanks, you don't know how much time you've saved me :-)- Hide quoted text -


- Show quoted text -



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
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 12 September 24th 05 10:58 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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