#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default countif

Hi,

I'm having problems with finding the right formula. I've been using a
countif to find the count of invoices which start with a 4. I've not been
having much luck so any help would be greatly appreicated.

Below is my sample data and formula I've been using:

=COUNTIF(C1:C3,"4*")

Row C
5017846
6007051
4000124

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default countif

One way: =SUMPRODUCT(--(LEFT(C1:C3)="4"))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:61
xdemechanik
---
"gemsey" wrote:
I'm having problems with finding the right formula. I've been using a
countif to find the count of invoices which start with a 4. I've not been
having much luck so any help would be greatly appreicated.

Below is my sample data and formula I've been using:

=COUNTIF(C1:C3,"4*")

Row C
5017846
6007051
4000124

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default countif

Thanks for the answer. Another question. I'm going to be needing a sumif
type formula also. For example for all invoices starting with 4 give me the
sum of the bills.

row C row d
5017730 10202.74
5017737 12879.33
5017744 25526.04
5017846 3261.97
6007051 12521.43
4000124 1011.68



"Max" wrote:

One way: =SUMPRODUCT(--(LEFT(C1:C3)="4"))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:61
xdemechanik
---
"gemsey" wrote:
I'm having problems with finding the right formula. I've been using a
countif to find the count of invoices which start with a 4. I've not been
having much luck so any help would be greatly appreicated.

Below is my sample data and formula I've been using:

=COUNTIF(C1:C3,"4*")

Row C
5017846
6007051
4000124

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default countif

Try

=SUMPRODUCT(--(LEFT(C1:C6)="4")*D1:D6)

Mike

"gemsey" wrote:

Thanks for the answer. Another question. I'm going to be needing a sumif
type formula also. For example for all invoices starting with 4 give me the
sum of the bills.

row C row d
5017730 10202.74
5017737 12879.33
5017744 25526.04
5017846 3261.97
6007051 12521.43
4000124 1011.68



"Max" wrote:

One way: =SUMPRODUCT(--(LEFT(C1:C3)="4"))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:61
xdemechanik
---
"gemsey" wrote:
I'm having problems with finding the right formula. I've been using a
countif to find the count of invoices which start with a 4. I've not been
having much luck so any help would be greatly appreicated.

Below is my sample data and formula I've been using:

=COUNTIF(C1:C3,"4*")

Row C
5017846
6007051
4000124

  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default countif

Try: =SUMPRODUCT(--(LEFT(C1:C3)="4"),D1:D3)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:61
xdemechanik
---
"gemsey" wrote:
Thanks for the answer. Another question. I'm going to be needing a sumif
type formula also. For example for all invoices starting with 4 give me the
sum of the bills.

row C row d
5017730 10202.74
5017737 12879.33
5017744 25526.04
5017846 3261.97
6007051 12521.43
4000124 1011.68




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default countif

Thanks so much for your help. I can move on now without pulling my hair out.

"Max" wrote:

Try: =SUMPRODUCT(--(LEFT(C1:C3)="4"),D1:D3)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:61
xdemechanik
---
"gemsey" wrote:
Thanks for the answer. Another question. I'm going to be needing a sumif
type formula also. For example for all invoices starting with 4 give me the
sum of the bills.

row C row d
5017730 10202.74
5017737 12879.33
5017744 25526.04
5017846 3261.97
6007051 12521.43
4000124 1011.68


  #7   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default countif

Welcome. Glad it helped.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"gemsey" wrote in message
...
Thanks so much for your help. I can move on now without pulling my hair
out.



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
COUNTIF and OR Annika Excel Discussion (Misc queries) 6 June 1st 06 02:54 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 12:32 PM.

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"