Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tamato43
 
Posts: n/a
Default Sumif with open Values

If the cell is formatted to show a date as follows:

"Monday 3/21/2005"

How can I create a "SUMIF" condition to say".....

SUMIF "Monday" shows anywhere in the cell.
  #3   Report Post  
Bob Umlas
 
Posts: n/a
Default

Cells FORMATTED as dddd m/d/yyyy are different from cells actually
containing the text MONDAY.... etc.
The formula bar for 3/21/05 would say 3/21/2005 but the cell could show
MONDAY 3/21/05, and you can't find MONDAY in that cell. However, you can use
the Weekday function to see if the cell's weekday returns 2 and use
SUMPRODUCT:
=SUMPRODUCT((WEEKDAY(A1:A100=2)*B1:B100) to return the sum of all of column
B where A is monday.
If text, use =SUMIF(A1:A100,"MONDAY*",B1:B100)

HTH
Bob Umlas
Excel MVP

"tamato43" wrote in message
...
If the cell is formatted to show a date as follows:

"Monday 3/21/2005"

How can I create a "SUMIF" condition to say".....

SUMIF "Monday" shows anywhere in the cell.



  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(TEXT(A1:A25,"dddd")="Monday"),B1:B25)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tamato43" wrote in message
...
If the cell is formatted to show a date as follows:

"Monday 3/21/2005"

How can I create a "SUMIF" condition to say".....

SUMIF "Monday" shows anywhere in the cell.



  #5   Report Post  
tamato43
 
Posts: n/a
Default

Thank you! You're a genius!!!

"Bob Phillips" wrote:

=SUMPRODUCT(--(TEXT(A1:A25,"dddd")="Monday"),B1:B25)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tamato43" wrote in message
...
If the cell is formatted to show a date as follows:

"Monday 3/21/2005"

How can I create a "SUMIF" condition to say".....

SUMIF "Monday" shows anywhere in the cell.






  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

Not really, the others are correct, I just frigged it so you thought you
were getting what you asked for :-)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tamato43" wrote in message
...
Thank you! You're a genius!!!

"Bob Phillips" wrote:

=SUMPRODUCT(--(TEXT(A1:A25,"dddd")="Monday"),B1:B25)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tamato43" wrote in message
...
If the cell is formatted to show a date as follows:

"Monday 3/21/2005"

How can I create a "SUMIF" condition to say".....

SUMIF "Monday" shows anywhere in the cell.






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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
Cannot open Excel attachment from e-mail when Excel is already ope John P. Excel Discussion (Misc queries) 1 March 1st 05 08:35 PM
When I open excel document it always ask if I want to open it in . dperkins Excel Discussion (Misc queries) 0 February 15th 05 08:11 PM
Cannot open a file that Excel says is open Plodhia Excel Discussion (Misc queries) 2 December 7th 04 01:43 AM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


All times are GMT +1. The time now is 06:34 PM.

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"