PC Review


Reply
 
 
Dick
Guest
Posts: n/a
 
      20th Jan 2011
=SUMPRODUCT((Sheet1!A:A="Alkalume 143")*(Sheet1!B:B="January"),Sheet1!
D)
Is there a way to format Sheet1!B:B as an ACTUAL DATE with days, like
1/5/2011 and still work the same. Currently I have Column B formatted
as text and Column C (the day) formatted as text. It works okay this
way but kind of sloppy.
Thanks in advance for any help!!!
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      20th Jan 2011
You still can't use the entire column in xl2003 and below.

=SUMPRODUCT(--(Sheet1!A1:A111="Alkalume 143"),
--(month(Sheet1!B1:B111)=1),
Sheet1!D1111)


If you wanted to just check January of 2003, you could use something like:

=SUMPRODUCT(--(Sheet1!A1:A111="Alkalume 143"),
--(text(Sheet1!B1:B111,"yyyymm")="200301"),
Sheet1!D1111)

ps.

Empty cells in B1:B111 will be treated as January 0, 1900 (if you're using 1900
as the base year.

You can modify your formula for plain old January so that those empty cells are
ignored:


=SUMPRODUCT(--(Sheet1!A1:A111="Alkalume 143"),
--(month(Sheet1!B1:B111)=1),
--(isnumber(sheet1!b1:b111)),
Sheet1!D1111)


Adjust the ranges to match--but you can't use whole columns (except in xl2007+).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html



On 01/19/2011 20:22, Dick wrote:
> =SUMPRODUCT((Sheet1!A:A="Alkalume 143")*(Sheet1!B:B="January"),Sheet1!
> D)


--
Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd date issue where date is between 1 January 1900 and 1 March 19 =?Utf-8?B?R1BP?= Microsoft Access Queries 2 15th Mar 2007 02:18 AM
[Newbie UK Date problem] Ways atround this UK date format localisation/SQLselection issue? DC Microsoft ASP .NET 5 1st Jul 2005 10:35 PM
[Newbie UK Date problem] Ways atround this UK date format localisation/SQLselection issue? DC Microsoft C# .NET 5 1st Jul 2005 10:35 PM
Group By Date issue - date format is "general" =?Utf-8?B?Y2hyaXM=?= Microsoft Access Queries 4 25th Oct 2004 10:25 PM
date() issue - 'unrecognised function "Date" ' error Andie Microsoft Access 1 25th Sep 2003 07:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:20 PM.