Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Help with SUMPRODUCT & converting date to value

I have the following Excel calculation, shown below. It is searching cells
A6:A1000 on various sheets for data which fall between a certain date/period
range, and is then adding the values in cells L6:L1000 together to display on
the summary.

The problem I have is that the data in ranges L6:L1000 are supposed to be
Dates, but the only way i can return a value without an error is to use a
number (e.g. of 1) instead. How can I use Dates within cells L6:L1000, and
still return the same totals?

Many thanks in advance for any tips you can offer!

=SUMPRODUCT((Office!L6:L1000)*(Office!A6:A1000=40 269)*(Office!A6:A1000<=40299)+((Commercial!L6:L100 0)*(Commercial!A6:A1000=40269)*(Commercial!A6:A10 00<=40299)+((Hospitality!L6:L1000)*(Hospitality!A6 :A1000=40269)*(Hospitality!A6:A1000<=40299))))

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default Help with SUMPRODUCT & converting date to value

Do you mean like this

=SUMPRODUCT((ISNUMBER(Office!L6:L1000))*(Office!A6 :A1000=--"2010-04-01")*(Office!A6:A1000<--"2010-05-01")
+((ISNUMBER(Commercial!L6:L1000))*(Commercial!A6:A 1000=--"2010-04-01")*(Commercial!A6:A1000<--"2010-05-01")
+((ISNUMBER(Hospitality!L6:L1000))*(Hospitality!A6 :A1000=--"2010-04-01")*(Hospitality!A6:A1000<--"2010-05-01"))))

--

HTH

Bob

"jrproudfoot" wrote in message
...
I have the following Excel calculation, shown below. It is searching cells
A6:A1000 on various sheets for data which fall between a certain
date/period
range, and is then adding the values in cells L6:L1000 together to display
on
the summary.

The problem I have is that the data in ranges L6:L1000 are supposed to be
Dates, but the only way i can return a value without an error is to use a
number (e.g. of 1) instead. How can I use Dates within cells L6:L1000, and
still return the same totals?

Many thanks in advance for any tips you can offer!

=SUMPRODUCT((Office!L6:L1000)*(Office!A6:A1000=40 269)*(Office!A6:A1000<=40299)+((Commercial!L6:L100 0)*(Commercial!A6:A1000=40269)*(Commercial!A6:A10 00<=40299)+((Hospitality!L6:L1000)*(Hospitality!A6 :A1000=40269)*(Hospitality!A6:A1000<=40299))))



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
Converting hijri date to gregorian date Ramil Marbella Excel Discussion (Misc queries) 1 May 5th 21 10:08 AM
Converting text format of time/date into Excel time/date for subtr YY san.[_2_] Excel Worksheet Functions 6 February 25th 10 08:27 AM
Converting a date to a text field w/o converting it to a julian da LynnMinn Excel Worksheet Functions 2 March 6th 08 03:43 PM
Converting a year date into a specific day date jonny Charts and Charting in Excel 1 July 4th 07 09:06 PM
Converting a date to a day stra03 Excel Worksheet Functions 2 December 1st 05 09:46 AM


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