#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default If statements two

Awesome, both of those formulas worked great. Thanks! I have one followup
question. I have the following data:

Category Date Amount
A 11/1/01 100.00
A 1/1/00 100.00
B 12/31/04 200.00
C 1/1/00 300.00

As stated before, I have the formula to sum the values in the fields and
divide the ones with invoice date before 1/1/01 by .03 and the ones after
1/1/01 by .029. However, is there a way to incorproate another formula that
will only calculate the ones in category A, then in a sepearte cell calculate
the ones in category B and so on and so fort.

Thanks,

Jason




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default If statements two

The formula I'm using to do the first set of calculations is:

=SUMPRODUCT(--(B2:B5=DATEVALUE("1/1/2001")),C2:C5)/0.029+SUMPRODUCT(--(B2:B5<DATEVALUE("1/1/2001")),C2:C5)/0.03

"Jason" wrote:

Awesome, both of those formulas worked great. Thanks! I have one followup
question. I have the following data:

Category Date Amount
A 11/1/01 100.00
A 1/1/00 100.00
B 12/31/04 200.00
C 1/1/00 300.00

As stated before, I have the formula to sum the values in the fields and
divide the ones with invoice date before 1/1/01 by .03 and the ones after
1/1/01 by .029. However, is there a way to incorproate another formula that
will only calculate the ones in category A, then in a sepearte cell calculate
the ones in category B and so on and so fort.

Thanks,

Jason




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default If statements two

=SUM(IF(A1:A29="A",IF(B1:B29=--"2001-01-01",C1:C29/0.029,C1:C29/0.03)))

=SUM(IF(A1:A29="B",IF(B1:B29=--"2001-01-01",C1:C29/0.029,C1:C29/0.03)))

etc.

which are array formulae, they should be committed with Ctrl-Shift-Enter,
not just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jason" wrote in message
...
Awesome, both of those formulas worked great. Thanks! I have one
followup
question. I have the following data:

Category Date Amount
A 11/1/01 100.00
A 1/1/00 100.00
B 12/31/04 200.00
C 1/1/00 300.00

As stated before, I have the formula to sum the values in the fields and
divide the ones with invoice date before 1/1/01 by .03 and the ones after
1/1/01 by .029. However, is there a way to incorproate another formula
that
will only calculate the ones in category A, then in a sepearte cell
calculate
the ones in category B and so on and so fort.

Thanks,

Jason






  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 740
Default If statements two

for A's only maybe like this
=SUMPRODUCT(--(B2:B5=DATEVALUE("1/1/2001")),C2:C5,a2:a5="A")/0.029+SUMPRODUCT(--(B2:B5<DATEVALUE("1/1/2001")),C2:C5,a2:a5="A")/0.03

--
regards



"Jason" wrote:

The formula I'm using to do the first set of calculations is:

=SUMPRODUCT(--(B2:B5=DATEVALUE("1/1/2001")),C2:C5)/0.029+SUMPRODUCT(--(B2:B5<DATEVALUE("1/1/2001")),C2:C5)/0.03

"Jason" wrote:

Awesome, both of those formulas worked great. Thanks! I have one followup
question. I have the following data:

Category Date Amount
A 11/1/01 100.00
A 1/1/00 100.00
B 12/31/04 200.00
C 1/1/00 300.00

As stated before, I have the formula to sum the values in the fields and
divide the ones with invoice date before 1/1/01 by .03 and the ones after
1/1/01 by .029. However, is there a way to incorproate another formula that
will only calculate the ones in category A, then in a sepearte cell calculate
the ones in category B and so on and so fort.

Thanks,

Jason




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
Help with IF statements Lil Excel Worksheet Functions 0 May 4th 07 06:02 AM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
if and or statements Debbie via OfficeKB.com Excel Discussion (Misc queries) 4 June 13th 06 02:24 PM
IF statements cb3291u Excel Discussion (Misc queries) 1 August 5th 05 03:42 PM
If Statements... Delaina Excel Discussion (Misc queries) 4 August 1st 05 10:29 PM


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