Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default count & If fomula

Hello

There is a rutine counting each week (very boring) I want to make it
authomatic. I have an spread sheet which 4 columns are important:

city, city status (On/Semi), state, %complete

I want this counting perocess:

1- I want to count: How many cities in each state are in "On" status?
2-I want to count: How many cities in each state are "100%" complete?

Please Help me to get ride of this boring manual updating.
Thanks
BHR
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default count & If fomula

Try...

=SUMPRODUCT(--(StateRange=State),--(StatusRange=Status))

and

=SUMPRODUCT(--(StateRange=State),--(PercentageCompleteRange=PercentageCom
plete))

Hope this helps!

In article ,
Bahareh wrote:

Hello

There is a rutine counting each week (very boring) I want to make it
authomatic. I have an spread sheet which 4 columns are important:

city, city status (On/Semi), state, %complete

I want this counting perocess:

1- I want to count: How many cities in each state are in "On" status?
2-I want to count: How many cities in each state are "100%" complete?

Please Help me to get ride of this boring manual updating.
Thanks
BHR

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default count & If fomula

Thanks Domenic.

The first formula works well. but the second one doesn't. I put

=SUMPRODUCT(--('Completed Cities'!G4:G400="IL"),--('Completed
Cities'!P4:P400"100%"))

but it doesn't work. It says #N/A. but values exist until raw 229. I put the
formula to raw 400 as I will add raws daily at bottom and I don't want to
change the formula each day. but If this is the case why the first formula
works well?

I put the first one as :
=SUMPRODUCT(--('Completed Cities'!G4:G400="IL"),--('Completed
Cities'!C4:C400="on"))

and another question, Is it possible that I put two condition as: How many
cities in state are "On" or "pending" status?

Really Thanks
BHR






"Domenic" wrote:

Try...

=SUMPRODUCT(--(StateRange=State),--(StatusRange=Status))

and

=SUMPRODUCT(--(StateRange=State),--(PercentageCompleteRange=PercentageCom
plete))

Hope this helps!

In article ,
Bahareh wrote:

Hello

There is a rutine counting each week (very boring) I want to make it
authomatic. I have an spread sheet which 4 columns are important:

city, city status (On/Semi), state, %complete

I want this counting perocess:

1- I want to count: How many cities in each state are in "On" status?
2-I want to count: How many cities in each state are "100%" complete?

Please Help me to get ride of this boring manual updating.
Thanks
BHR


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default count & If fomula

Thanks Domenic. The other issue also solved (It was becuase some cells had
#N/A content). but still I don`t know how to put 100% for second question
(as I saw that in some cities we had more than 100% progress in this phase.)

and If it is possible for 1st question to add another condition as:
How many cities in each state are "on" or "pending" status?

Really Thanks
BHR

"Domenic" wrote:

Try...

=SUMPRODUCT(--(StateRange=State),--(StatusRange=Status))

and

=SUMPRODUCT(--(StateRange=State),--(PercentageCompleteRange=PercentageCom
plete))

Hope this helps!

In article ,
Bahareh wrote:

Hello

There is a rutine counting each week (very boring) I want to make it
authomatic. I have an spread sheet which 4 columns are important:

city, city status (On/Semi), state, %complete

I want this counting perocess:

1- I want to count: How many cities in each state are in "On" status?
2-I want to count: How many cities in each state are "100%" complete?

Please Help me to get ride of this boring manual updating.
Thanks
BHR


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default count & If fomula

In article ,
Bahareh wrote:

Thanks Domenic


You're very welcome!

...but still I don`t know how to put 100% for second question


Remove the quotes...

=SUMPRODUCT(--('Completed Cities'!G4:G400="IL"),--('Completed
Cities'!P4:P400100%))

...and If it is possible for 1st question to add another condition as:
How many cities in each state are "on" or "pending" status


=SUMPRODUCT(--('Completed
Cities'!G4:G400="IL"),--ISNUMBER(MATCH('Completed
Cities'!C4:C400,{"on","pending"},0)))

Hope this helps!


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default count & If fomula

Great! thanks!

"Domenic" wrote:

In article ,
Bahareh wrote:

Thanks Domenic


You're very welcome!

...but still I don`t know how to put 100% for second question


Remove the quotes...

=SUMPRODUCT(--('Completed Cities'!G4:G400="IL"),--('Completed
Cities'!P4:P400100%))

...and If it is possible for 1st question to add another condition as:
How many cities in each state are "on" or "pending" status


=SUMPRODUCT(--('Completed
Cities'!G4:G400="IL"),--ISNUMBER(MATCH('Completed
Cities'!C4:C400,{"on","pending"},0)))

Hope this helps!

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
Fomula (if?) Jules Excel Worksheet Functions 0 August 8th 06 07:13 PM
Fomula Steve Excel Discussion (Misc queries) 2 December 8th 05 07:29 PM
Please help, i need a fomula Age Formula?? Excel Worksheet Functions 2 October 13th 05 10:32 PM
IF Fomula DWadding Excel Discussion (Misc queries) 1 August 3rd 05 05:32 PM
To get fomula to display a Zero Geo Excel Discussion (Misc queries) 1 December 30th 04 11:59 PM


All times are GMT +1. The time now is 08:26 PM.

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"