Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
K K is offline
external usenet poster
 
Posts: 108
Default SUMPRODUCT AND LEFT

I'm trying to get this formula to work but it's giving a #NA value. The
formula works fine until I add the last condition with the LEFT function.

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(LEFT('CPO Tracking Log'!$C$14:$C$66,2)="RA"))

What I would ideally like to do is to use a wildcard function for the last
condition, so that if the cell contains RA in the begining or end then sum it.

HELP?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default SUMPRODUCT AND LEFT

You could try it like this:

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(ISNUMBER(SEARCH("R A",'CPO Tracking
Log'!$C$14:$C$41))))

Note the ranges should be equal - you had C$66 in your last term, which was
causing the error.

This will count the cell if it contains "ra". If case is important to you,
then use FIND instead of SEARCH.

Hope this helps.

Pete

"K" wrote in message
...
I'm trying to get this formula to work but it's giving a #NA value. The
formula works fine until I add the last condition with the LEFT function.

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(LEFT('CPO Tracking
Log'!$C$14:$C$66,2)="RA"))

What I would ideally like to do is to use a wildcard function for the last
condition, so that if the cell contains RA in the begining or end then sum
it.

HELP?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
K K is offline
external usenet poster
 
Posts: 108
Default SUMPRODUCT AND LEFT

Thank you so much. Let me try and hope it works!

"Pete_UK" wrote:

You could try it like this:

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(ISNUMBER(SEARCH("R A",'CPO Tracking
Log'!$C$14:$C$41))))

Note the ranges should be equal - you had C$66 in your last term, which was
causing the error.

This will count the cell if it contains "ra". If case is important to you,
then use FIND instead of SEARCH.

Hope this helps.

Pete

"K" wrote in message
...
I'm trying to get this formula to work but it's giving a #NA value. The
formula works fine until I add the last condition with the LEFT function.

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(LEFT('CPO Tracking
Log'!$C$14:$C$66,2)="RA"))

What I would ideally like to do is to use a wildcard function for the last
condition, so that if the cell contains RA in the begining or end then sum
it.

HELP?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
K K is offline
external usenet poster
 
Posts: 108
Default SUMPRODUCT AND LEFT

Worked like a charm. Thank you so much.

"Pete_UK" wrote:

You could try it like this:

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(ISNUMBER(SEARCH("R A",'CPO Tracking
Log'!$C$14:$C$41))))

Note the ranges should be equal - you had C$66 in your last term, which was
causing the error.

This will count the cell if it contains "ra". If case is important to you,
then use FIND instead of SEARCH.

Hope this helps.

Pete

"K" wrote in message
...
I'm trying to get this formula to work but it's giving a #NA value. The
formula works fine until I add the last condition with the LEFT function.

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(LEFT('CPO Tracking
Log'!$C$14:$C$66,2)="RA"))

What I would ideally like to do is to use a wildcard function for the last
condition, so that if the cell contains RA in the begining or end then sum
it.

HELP?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default SUMPRODUCT AND LEFT

You're welcome - thanks for feeding back.

Note that with SEARCH you can include wildcard characters, so if you had
"?RA" in the formula this would count "Crash" and "Trash" etc, but not
"Rash".

Pete

"K" wrote in message
...
Worked like a charm. Thank you so much.

"Pete_UK" wrote:

You could try it like this:

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(ISNUMBER(SEARCH("R A",'CPO Tracking
Log'!$C$14:$C$41))))

Note the ranges should be equal - you had C$66 in your last term, which
was
causing the error.

This will count the cell if it contains "ra". If case is important to
you,
then use FIND instead of SEARCH.

Hope this helps.

Pete

"K" wrote in message
...
I'm trying to get this formula to work but it's giving a #NA value.
The
formula works fine until I add the last condition with the LEFT
function.

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(LEFT('CPO Tracking
Log'!$C$14:$C$66,2)="RA"))

What I would ideally like to do is to use a wildcard function for the
last
condition, so that if the cell contains RA in the begining or end then
sum
it.

HELP?






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
K K is offline
external usenet poster
 
Posts: 108
Default SUMPRODUCT AND LEFT

Thanks for that. I need to learn more about wildcards in general.

"Pete_UK" wrote:

You're welcome - thanks for feeding back.

Note that with SEARCH you can include wildcard characters, so if you had
"?RA" in the formula this would count "Crash" and "Trash" etc, but not
"Rash".

Pete

"K" wrote in message
...
Worked like a charm. Thank you so much.

"Pete_UK" wrote:

You could try it like this:

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(ISNUMBER(SEARCH("R A",'CPO Tracking
Log'!$C$14:$C$41))))

Note the ranges should be equal - you had C$66 in your last term, which
was
causing the error.

This will count the cell if it contains "ra". If case is important to
you,
then use FIND instead of SEARCH.

Hope this helps.

Pete

"K" wrote in message
...
I'm trying to get this formula to work but it's giving a #NA value.
The
formula works fine until I add the last condition with the LEFT
function.

=SUMPRODUCT(('CPO Tracking Log'!Q14:Q41=DATE(2008,6,1))*('CPO Tracking
Log'!Q14:Q41<=DATE(2008,6,30))*(LEFT('CPO Tracking
Log'!$C$14:$C$66,2)="RA"))

What I would ideally like to do is to use a wildcard function for the
last
condition, so that if the cell contains RA in the begining or end then
sum
it.

HELP?






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 make left side stay still and right side can move left to r AAS Excel Discussion (Misc queries) 1 May 27th 08 09:50 PM
My Excel view is Right to Left instead of Left to Right !!! Akash Puri Excel Discussion (Misc queries) 2 May 5th 08 07:15 PM
Column labels run right to left, not left to right tmassey Excel Discussion (Misc queries) 1 November 10th 06 11:03 AM
Left and Sumproduct Alexball Excel Discussion (Misc queries) 1 August 9th 06 12:00 PM
How to change the right-to-left worksheet to left-to-right workshe RAMA Excel Discussion (Misc queries) 1 July 4th 05 01:57 PM


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