Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default Lookup from a list of numbers

Hi, I currently am using an array formula to match up certain values, if they
match, then I pull a Qty value from that row. I want to be able to have one
of those value types come from a list of numbers, I call Ncodes. To simply
how the data looks I've created a short version.

Type Ord# QtrCR Qty NCode
A B C D E
5 ze4 4501 1Q08 10 1117
6 ze3 4502 1Q08 15 1116
7 ze4 4503 1Q08 15 1117
8 ze6 4504 1Q08 12 1119

If my Ncode list looks like this, and I name the range "Ncode" -
Placed in a separate area of the Spreadsheet, the result should show Qty of
40.
AA
10 1116
11 1117

Below is an example of the array statement that would pull 1117 only, but it
doesn't work to name a range in place of the 1117, such as AA10:AA11, or use
a named range of Ncode. I'm looking at possibly have an Ncode list of 7 to 10
numbers. So I'm wanting a TRUE for that portion of the formula if any one of
the Ncode list causes a match.

{=(SUM((IF(ISERROR(FIND("Q08",Buffer!$C$5:$C$8)),0 ,1))*(IF(ISNUMBER(Buffer!$B$5:$B$8),1,0))*(IF(ISER ROR(FIND(1117,Buffer!$E$5:$E$8)),0,1))*Buffer!$D$5 :$D$8)}

Thanks ahead of time for any help. Dean
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Lookup from a list of numbers

I'll give it a try :). I think you are trying to summarize the data so that
you sum every instance of the Qty for each NCode in your second list. Try
this:

=sumproduct(--(NCode=AA10),--(right(QtrCR,3)="Q08"),Qty)

Place this in cell AB10 then drag it down, and for each value of NCode you
have listed it will sum all the different Qty that also equal Q08.

Mike


"Dean" wrote:

Hi, I currently am using an array formula to match up certain values, if they
match, then I pull a Qty value from that row. I want to be able to have one
of those value types come from a list of numbers, I call Ncodes. To simply
how the data looks I've created a short version.

Type Ord# QtrCR Qty NCode
A B C D E
5 ze4 4501 1Q08 10 1117
6 ze3 4502 1Q08 15 1116
7 ze4 4503 1Q08 15 1117
8 ze6 4504 1Q08 12 1119

If my Ncode list looks like this, and I name the range "Ncode" -
Placed in a separate area of the Spreadsheet, the result should show Qty of
40.
AA
10 1116
11 1117

Below is an example of the array statement that would pull 1117 only, but it
doesn't work to name a range in place of the 1117, such as AA10:AA11, or use
a named range of Ncode. I'm looking at possibly have an Ncode list of 7 to 10
numbers. So I'm wanting a TRUE for that portion of the formula if any one of
the Ncode list causes a match.

{=(SUM((IF(ISERROR(FIND("Q08",Buffer!$C$5:$C$8)),0 ,1))*(IF(ISNUMBER(Buffer!$B$5:$B$8),1,0))*(IF(ISER ROR(FIND(1117,Buffer!$E$5:$E$8)),0,1))*Buffer!$D$5 :$D$8)}

Thanks ahead of time for any help. Dean

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default Lookup from a list of numbers

Hi Mike, I also placed this question in the Excel Functions side and got the
answer I needed from Bernie. But this looks good for some future situations,
thanks so much for taking the time to reply. Dean

"mikebres" wrote:

I'll give it a try :). I think you are trying to summarize the data so that
you sum every instance of the Qty for each NCode in your second list. Try
this:

=sumproduct(--(NCode=AA10),--(right(QtrCR,3)="Q08"),Qty)

Place this in cell AB10 then drag it down, and for each value of NCode you
have listed it will sum all the different Qty that also equal Q08.

Mike


"Dean" wrote:

Hi, I currently am using an array formula to match up certain values, if they
match, then I pull a Qty value from that row. I want to be able to have one
of those value types come from a list of numbers, I call Ncodes. To simply
how the data looks I've created a short version.

Type Ord# QtrCR Qty NCode
A B C D E
5 ze4 4501 1Q08 10 1117
6 ze3 4502 1Q08 15 1116
7 ze4 4503 1Q08 15 1117
8 ze6 4504 1Q08 12 1119

If my Ncode list looks like this, and I name the range "Ncode" -
Placed in a separate area of the Spreadsheet, the result should show Qty of
40.
AA
10 1116
11 1117

Below is an example of the array statement that would pull 1117 only, but it
doesn't work to name a range in place of the 1117, such as AA10:AA11, or use
a named range of Ncode. I'm looking at possibly have an Ncode list of 7 to 10
numbers. So I'm wanting a TRUE for that portion of the formula if any one of
the Ncode list causes a match.

{=(SUM((IF(ISERROR(FIND("Q08",Buffer!$C$5:$C$8)),0 ,1))*(IF(ISNUMBER(Buffer!$B$5:$B$8),1,0))*(IF(ISER ROR(FIND(1117,Buffer!$E$5:$E$8)),0,1))*Buffer!$D$5 :$D$8)}

Thanks ahead of time for any help. Dean

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 can I extract a list of numbers missing in a list? Nancy New Users to Excel 2 January 28th 10 11:18 PM
Lookup from a list of numbers Dean Excel Worksheet Functions 2 May 21st 08 06:11 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
change a vertical list of numbers to horizontal list from 1 cell caz Excel Discussion (Misc queries) 3 September 27th 06 12:11 PM
how to extract unique numbers once from a list of repeated numbers? [email protected] Excel Discussion (Misc queries) 2 May 2nd 06 04:17 PM


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