ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   SUMIF (https://www.excelbanter.com/excel-discussion-misc-queries/205408-sumif.html)

peyman

SUMIF
 
hi guys,
I just wanna know if two conditions can be considered in the sumif
formula?like below:
= sumif(E3:E100, "3-sep-08 & <16-sep-08" , G3:G100)
Actually I tried it but the answer was wrong ,I need to know if there is any
modifications in the above formula?
I want to sum something in a time period like between Sep. 3 to 16.
Thanx,
Peiman


David Biddulph[_2_]

SUMIF
 
=SUMPRODUCT(--(E3:E100DATE(2008,9,3)),--(E3:E100<DATE(2008,9,16)),G3:G100)
--
David Biddulph

"peyman" wrote in message
...
hi guys,
I just wanna know if two conditions can be considered in the sumif
formula?like below:
= sumif(E3:E100, "3-sep-08 & <16-sep-08" , G3:G100)
Actually I tried it but the answer was wrong ,I need to know if there is
any
modifications in the above formula?
I want to sum something in a time period like between Sep. 3 to 16.
Thanx,
Peiman




Mike H

SUMIF
 
maybe this

=SUMPRODUCT((E3:E100DATE(2008,9,3))*(E3:E100<DATE (2008,9,16))*(G3:G100))

In practice I'd use cell rerences that point to the dates.

Mikr

"peyman" wrote:

hi guys,
I just wanna know if two conditions can be considered in the sumif
formula?like below:
= sumif(E3:E100, "3-sep-08 & <16-sep-08" , G3:G100)
Actually I tried it but the answer was wrong ,I need to know if there is any
modifications in the above formula?
I want to sum something in a time period like between Sep. 3 to 16.
Thanx,
Peiman


peyman

SUMIF
 
thanx a lot

"Mike H" wrote:

maybe this

=SUMPRODUCT((E3:E100DATE(2008,9,3))*(E3:E100<DATE (2008,9,16))*(G3:G100))

In practice I'd use cell rerences that point to the dates.

Mikr

"peyman" wrote:

hi guys,
I just wanna know if two conditions can be considered in the sumif
formula?like below:
= sumif(E3:E100, "3-sep-08 & <16-sep-08" , G3:G100)
Actually I tried it but the answer was wrong ,I need to know if there is any
modifications in the above formula?
I want to sum something in a time period like between Sep. 3 to 16.
Thanx,
Peiman


peyman

SUMIF
 
Thanx David

"David Biddulph" wrote:

=SUMPRODUCT(--(E3:E100DATE(2008,9,3)),--(E3:E100<DATE(2008,9,16)),G3:G100)
--
David Biddulph

"peyman" wrote in message
...
hi guys,
I just wanna know if two conditions can be considered in the sumif
formula?like below:
= sumif(E3:E100, "3-sep-08 & <16-sep-08" , G3:G100)
Actually I tried it but the answer was wrong ,I need to know if there is
any
modifications in the above formula?
I want to sum something in a time period like between Sep. 3 to 16.
Thanx,
Peiman






All times are GMT +1. The time now is 06:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com