#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Worksheet Function

Hello everyone,

This is what I would like to do...

Column E contains dates, that the order has been taken.
Column D contains the pairs that were sold.

I would like to add up just the orders that were sold in 07, in comparison
to 06.

What formula would I use??

I'm assuming it's an IF statement. If the order wasn't placed in 07, i don't
want them to be in the total.

--
Jeremy Himmelreich
Computer IT Manager
http://home.comcast.net/~jeremy1982
http://www.willitshoe.com
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Worksheet Function

=SUMPRODUCT(--(YEAR(E2:E100)=2007),(D2:D100))

will sum D for year=2007 in E

"JeremyH1982" wrote:

Hello everyone,

This is what I would like to do...

Column E contains dates, that the order has been taken.
Column D contains the pairs that were sold.

I would like to add up just the orders that were sold in 07, in comparison
to 06.

What formula would I use??

I'm assuming it's an IF statement. If the order wasn't placed in 07, i don't
want them to be in the total.

--
Jeremy Himmelreich
Computer IT Manager
http://home.comcast.net/~jeremy1982
http://www.willitshoe.com

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,089
Default Worksheet Function

Jeremy

=SUMPRODUCT((YEAR(E1:E6)=2007)*(D1:D6))

Adjust the range as required. Note that it cannot be a full column and the
ranges should match.

Regards

Trevor



"JeremyH1982" wrote in message
...
Hello everyone,

This is what I would like to do...

Column E contains dates, that the order has been taken.
Column D contains the pairs that were sold.

I would like to add up just the orders that were sold in 07, in comparison
to 06.

What formula would I use??

I'm assuming it's an IF statement. If the order wasn't placed in 07, i
don't
want them to be in the total.

--
Jeremy Himmelreich
Computer IT Manager
http://home.comcast.net/~jeremy1982
http://www.willitshoe.com



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Worksheet Function

That would work... but the dates are different, it's not all the same format...

examples: one order could be dated 09/20/07, another one could be 4/27/07

--
Jeremy Himmelreich
Computer IT Manager
http://home.comcast.net/~jeremy1982
http://www.willitshoe.com


"Toppers" wrote:

=SUMPRODUCT(--(YEAR(E2:E100)=2007),(D2:D100))

will sum D for year=2007 in E


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Worksheet Function

Did you try the formula? It will sum all entries for 2007 like you stated in
your OP, do the same for 2006 and you'll get your comparison


--
Regards,

Peo Sjoblom



"JeremyH1982" wrote in message
...
That would work... but the dates are different, it's not all the same
format...

examples: one order could be dated 09/20/07, another one could be 4/27/07

--
Jeremy Himmelreich
Computer IT Manager
http://home.comcast.net/~jeremy1982
http://www.willitshoe.com


"Toppers" wrote:

=SUMPRODUCT(--(YEAR(E2:E100)=2007),(D2:D100))

will sum D for year=2007 in E




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
Worksheet function? Mike Excel Worksheet Functions 5 November 3rd 06 06:24 PM
WorkSheet Function Help Dawn Excel Worksheet Functions 0 February 6th 06 09:33 PM
WorkSheet Function Help Ron Coderre Excel Worksheet Functions 0 February 6th 06 09:31 PM
Reference the worksheet from a multiple worksheet range function ( DBickel Excel Worksheet Functions 1 May 28th 05 03:49 AM
Can the offset worksheet function reference another worksheet AlistairJ Excel Worksheet Functions 2 May 9th 05 06:18 PM


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