Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default # of days - if & count statements

I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default # of days - if & count statements

Try this:

With your table in A1:B10

Count of records 0-30 days:
=COUNTIF(A2:A10,"<=30")

Sum of Amounts for records 0-30 days:
=SUMIF(A2:A10,"<=30",B2:B10)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Karen Smith" wrote:

I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default # of days - if & count statements


=COUNTIF(A1:A7,"<=30")

=SUMPRODUCT(--(A1:A7<=30),B1:B7)

HTH

"Karen Smith" wrote:

I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 195
Default # of days - if & count statements

for the count of days <31

If the Range of days is A1 : A10

=COUNTIF(A1:A10,"<31")


For the sum of money <31 days amounts in col B1:B10

= SUMIF(A1:A10,"<31",B1:b10)


Karen Smith wrote:
I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 195
Default # of days - if & count statements

for the count of days <31

If the Range of days is A1 : A10

=COUNTIF(A1:A10,"<31")


For the sum of money <31 days amounts in col B1:B10

= SUMIF(A1:A10,"<31",B1:b10)


Karen Smith wrote:
I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default # of days - if & count statements

How would i say greater than 31 days less than 60 days?

"stevebriz" wrote:

for the count of days <31

If the Range of days is A1 : A10

=COUNTIF(A1:A10,"<31")


For the sum of money <31 days amounts in col B1:B10

= SUMIF(A1:A10,"<31",B1:b10)


Karen Smith wrote:
I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default # of days - if & count statements

One way would be =COUNTIF(A1:A10,"<60")-COUNTIF(A1:A10,"30") where you're
just subtracting the count of days greater than 30 from the count of days
less than 60.

Dave
--
Brevity is the soul of wit.


"Karen Smith" wrote:

How would i say greater than 31 days less than 60 days?

"stevebriz" wrote:

for the count of days <31

If the Range of days is A1 : A10

=COUNTIF(A1:A10,"<31")


For the sum of money <31 days amounts in col B1:B10

= SUMIF(A1:A10,"<31",B1:b10)


Karen Smith wrote:
I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default # of days - if & count statements

Here's the formula that I have now. I need to make formulas for 30 <=60
and so on down the road every 30 days.

=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$4000<=30),pseries!$T$8:$T$4000)

I've tried the one below but it doesn't seem to give me the answer.
=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400031<61),pseries!$T$8:$T$4000)

Can anyone help?


"Karen Smith" wrote:

I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default # of days - if & count statements


=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400031),--(pseries!$S$8:$S$4000<61),pseries!$T$8:$T$4000)



"Karen Smith" wrote:

Here's the formula that I have now. I need to make formulas for 30 <=60
and so on down the road every 30 days.

=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$4000<=30),pseries!$T$8:$T$4000)

I've tried the one below but it doesn't seem to give me the answer.
=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400031<61),pseries!$T$8:$T$4000)

Can anyone help?


"Karen Smith" wrote:

I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default # of days - if & count statements

..... should be ...


=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400030),--(pseries!$S$8:$S$4000<=60),pseries!$T$8:$T$4000)


"Toppers" wrote:


=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400031),--(pseries!$S$8:$S$4000<61),pseries!$T$8:$T$4000)



"Karen Smith" wrote:

Here's the formula that I have now. I need to make formulas for 30 <=60
and so on down the road every 30 days.

=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$4000<=30),pseries!$T$8:$T$4000)

I've tried the one below but it doesn't seem to give me the answer.
=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400031<61),pseries!$T$8:$T$4000)

Can anyone help?


"Karen Smith" wrote:

I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300



  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default # of days - if & count statements


=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400030),--(pseries!$S$8:$S$4000<=60),pseries!$T$8:$T$4000

=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400060),--(pseries!$S$8:$S$4000<=90),pseries!$T$8:$T$4000

etc

"Toppers" wrote:


=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400031),--(pseries!$S$8:$S$4000<61),pseries!$T$8:$T$4000)



"Karen Smith" wrote:

Here's the formula that I have now. I need to make formulas for 30 <=60
and so on down the road every 30 days.

=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$4000<=30),pseries!$T$8:$T$4000)

I've tried the one below but it doesn't seem to give me the answer.
=SUMPRODUCT(--(pseries!$I$8:$I$4000="advertising"),--(pseries!$S$8:$S$400031<61),pseries!$T$8:$T$4000)

Can anyone help?


"Karen Smith" wrote:

I need to create 2 formulas on the following table ....1 how many records are
0-30 days (answer 4) and 2ndly how much money are in 0-30 days (answer $750)

For example
# of Days $
28 150
34 100
22 100
44 100
1 200
32 50
5 300

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
need help with formula Bryan J Bloom Excel Discussion (Misc queries) 11 October 31st 05 10:52 PM
Formula to count number of days in range which are less than today zooming Excel Worksheet Functions 2 June 21st 05 04:01 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
count if function with if statements Natalia Excel Worksheet Functions 3 April 22nd 05 02:52 AM


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