Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Use extract into a condition

I have a sumproduct formula with different conditions. One of them is picking
up only the first 17 caracters of a cell. So LEFT(H10,17)

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=
LEFT(H10,17) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

How do I put it on the formula?

Thanks in advance

Mosqui
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Use extract into a condition

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=
LEFT(H10,17) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)


Not sure what you're asking.

Your formula is syntactically correct if you remove that gap:

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=LEFT(H10,17)),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

--
Biff
Microsoft Excel MVP


"Mosqui" wrote in message
...
I have a sumproduct formula with different conditions. One of them is
picking
up only the first 17 caracters of a cell. So LEFT(H10,17)

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=
LEFT(H10,17) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

How do I put it on the formula?

Thanks in advance

Mosqui



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Use extract into a condition

I left the gap because wasn't sure what to put there. Doesn't work.
I also need the same condition for column D but, how is the formula then?

So, how do you take the first 17 digits on the array?

$D$4:$D$151=LEFT(H10,17)

thanks for your help


"T. Valko" wrote:

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=
LEFT(H10,17) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)


Not sure what you're asking.

Your formula is syntactically correct if you remove that gap:

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=LEFT(H10,17)),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

--
Biff
Microsoft Excel MVP


"Mosqui" wrote in message
...
I have a sumproduct formula with different conditions. One of them is
picking
up only the first 17 caracters of a cell. So LEFT(H10,17)

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=
LEFT(H10,17) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

How do I put it on the formula?

Thanks in advance

Mosqui



.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Use extract into a condition

Oh, I see... Just do the same thing to the array:

--(LEFT($D$4:$D$151,17)=LEFT(H10,17))

--
Biff
Microsoft Excel MVP


"Mosqui" wrote in message
...
I left the gap because wasn't sure what to put there. Doesn't work.
I also need the same condition for column D but, how is the formula then?

So, how do you take the first 17 digits on the array?

$D$4:$D$151=LEFT(H10,17)

thanks for your help


"T. Valko" wrote:

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=

7) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)


Not sure what you're asking.

Your formula is syntactically correct if you remove that gap:

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=LEFT(H10,17)),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

--
Biff
Microsoft Excel MVP


"Mosqui" wrote in message
...
I have a sumproduct formula with different conditions. One of them is
picking
up only the first 17 caracters of a cell. So LEFT(H10,17)

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=

7) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

How do I put it on the formula?

Thanks in advance

Mosqui



.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Use extract into a condition

That was perfect

thanks for your help.

"T. Valko" wrote:

Oh, I see... Just do the same thing to the array:

--(LEFT($D$4:$D$151,17)=LEFT(H10,17))

--
Biff
Microsoft Excel MVP


"Mosqui" wrote in message
...
I left the gap because wasn't sure what to put there. Doesn't work.
I also need the same condition for column D but, how is the formula then?

So, how do you take the first 17 digits on the array?

$D$4:$D$151=LEFT(H10,17)

thanks for your help


"T. Valko" wrote:

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=

7) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

Not sure what you're asking.

Your formula is syntactically correct if you remove that gap:

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=LEFT(H10,17)),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

--
Biff
Microsoft Excel MVP


"Mosqui" wrote in message
...
I have a sumproduct formula with different conditions. One of them is
picking
up only the first 17 caracters of a cell. So LEFT(H10,17)

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=

7) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

How do I put it on the formula?

Thanks in advance

Mosqui


.



.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Use extract into a condition

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Mosqui" wrote in message
...
That was perfect

thanks for your help.

"T. Valko" wrote:

Oh, I see... Just do the same thing to the array:

--(LEFT($D$4:$D$151,17)=LEFT(H10,17))

--
Biff
Microsoft Excel MVP


"Mosqui" wrote in message
...
I left the gap because wasn't sure what to put there. Doesn't work.
I also need the same condition for column D but, how is the formula
then?

So, how do you take the first 17 digits on the array?

$D$4:$D$151=LEFT(H10,17)

thanks for your help


"T. Valko" wrote:

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=

7) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

Not sure what you're asking.

Your formula is syntactically correct if you remove that gap:

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=LEFT(H10,17)),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

--
Biff
Microsoft Excel MVP


"Mosqui" wrote in message
...
I have a sumproduct formula with different conditions. One of them is
picking
up only the first 17 caracters of a cell. So LEFT(H10,17)

=SUMPRODUCT(--(Details!$C$4:$C$151=Summary!G10),--(Details!$D$4:$D$151=

7) ),--(Details!$E$4:$E$151=I10),Details!$F$4:$F$151)

How do I put it on the formula?

Thanks in advance

Mosqui


.



.



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
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
Combine an OR condition with an AND condition Will Excel Discussion (Misc queries) 1 April 6th 07 03:52 PM
Condition 1 overules condition 2? Bultgren Excel Worksheet Functions 2 January 20th 06 12:29 PM
Extract String based on condition Send Object Command - Two attachments Excel Discussion (Misc queries) 4 November 1st 05 09:06 PM
Extract Unique Values, Then Extract Again to Remove Suffixes Karl Burrows Excel Discussion (Misc queries) 23 June 25th 05 10:37 PM


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