LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Problem with Syntax?

Thanks - you have been very helpful. Have a great weekend!

"Jacob Skaria" wrote:

Oops. Sorry for the duplication...There was an formula error in my original
post and hence I was trying to post the corrected one...but was returning
error......
To change that to 20000 is fine...only thing is you need to make sure you
change all references...as below

=SUMPRODUCT(--(TEXT(B2:B20000,"mmyyyy")="012008"),--(C2:C20000="Motor"),(D2:D20000+E2:E20000))

I am not using Excel 2007 right now; and so will not be in a position to
comment on SUMIFS()..Sorry.

If this post helps click Yes
---------------
Jacob Skaria


"MurrayBarn" wrote:

Hi Jacob

Seems like there was a duplication issue. Would you be so kind as to have a
look at my second post on this thread.

Regards
Murray

"Jacob Skaria" wrote:

Not sure if this is going to be duplicated. I think the earlier post is
having a syntax error.

Try the below which will return total for November 2008

=SUMPRODUCT(--(TEXT(B2:B10,"mmyyyy")="112008"),--(C2:C10="Motor"),(D2:D10+E2:E10))

If you want to refer cell C14 with month beginning date; then try the below.
Month end date is not needed.

=SUMPRODUCT(--(TEXT(B2:B10,"mmyyyy")=TEXT(C14,"mmyyyy")),--(C2:C10="Motor"),(D2:D10+E2:E10))



If this post helps click Yes
---------------
Jacob Skaria


"MurrayBarn" wrote:

2 B C D E
3 PolicyStartDate Class ClassTotal VAT
4 01/11/2008 Motor 10,039.24 1,232.89
5 01/11/2008 Motor -200.00 -24.56
6 01/11/2008 Motor 1,150.60 141.30
7 01/11/2008 Non-Motor 12,414.70 1,524.61
8 01/12/2008 Non-Motor 12,414.70 1,524.61
9 01/12/2008 SASRIA 52.75 6.48
10 01/12/2008 SASRIA 52.75 6.48
11
12
13 November December
14 Month Beg 01/11/2008 01/12/2008
15 Month End 30/11/2008 31/12/2008
16 Motor #VALUE!
17 Non-Motor

I am trying to Sum columns D:E for all data that falls in the month of
November 2008, then Decmber 2008, Jan 2009 etc that corresponds to the
definition Motor as per column C but my formula
=SUMIFS(D4:E10,B4:B10,"=C14",B4:B10,"<=C15",C4:C1 0,"=B16") that I have in
C16 is giving me a #VALUE error. Is my logic or my Syntax wrong?

 
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
PLS HLP! Countifs Syntax Problem? dee Excel Worksheet Functions 5 June 14th 07 10:14 AM
Delete syntax problem anny Excel Worksheet Functions 3 January 27th 06 03:59 AM
SendKeys syntax problem VBAvirgin New Users to Excel 2 January 4th 06 04:42 PM
.XValues syntax problem JF_01 Charts and Charting in Excel 1 December 19th 05 08:21 PM
Syntax problem Alex H Excel Worksheet Functions 1 July 2nd 05 08:23 AM


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