#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BAS BAS is offline
external usenet poster
 
Posts: 14
Default Lookup function

I have a worksheet "Spend Detail" with 8000+ part numbers, A7:A8253 and the
unit prices for each part # is in, G7:G8253 (Part # in A7 unit price is in G7
and so on).

I have now created another worksheet "ABC" but with only 120 or so part #'s
(that were filtered from Spend Detail) but didn't bring over the unit costs.
Is there a function to take the part #'s on sheet ABC and go and look for it
on sheet Spend Detail and bring over the corresponding unit cost?

It would take to much time to filter through and find the unit costs manually.

THanks,
BAS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup function

Try this:

On the ABC sheet:

A1 = some part #

Enter this formula in B1:

=SUMIF('Spend Detail'!A$7:A$8253,A1,'Spend Detail'!G$7:G$8253)

Copy down as needed.

--
Biff
Microsoft Excel MVP


"BAS" wrote in message
...
I have a worksheet "Spend Detail" with 8000+ part numbers, A7:A8253 and the
unit prices for each part # is in, G7:G8253 (Part # in A7 unit price is in
G7
and so on).

I have now created another worksheet "ABC" but with only 120 or so part
#'s
(that were filtered from Spend Detail) but didn't bring over the unit
costs.
Is there a function to take the part #'s on sheet ABC and go and look for
it
on sheet Spend Detail and bring over the corresponding unit cost?

It would take to much time to filter through and find the unit costs
manually.

THanks,
BAS



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Lookup function

VLOOKUP will do that.

Source Table: (I'm naming the workseet "SOURCE" for illustration purposes).
A B C D E F
G
1 Part # Label Label Label Label Label
Unit Price
2 67595
$69.99
3 15359
$35.49
4 85695
$21.99
..
..
..
8253 12345
$11.99

Target Table
A B
1 Part # Unit Cost
2 67595 =VLOOKUP(A2,SOURCE!$A$1:$G$8253,7,FALSE)

You then copy that formula all the way down for the 120 cells that you have
on the target table and you'll get the unit prices that correspond to each
part number on it.

Hope this helps.




"BAS" wrote:

I have a worksheet "Spend Detail" with 8000+ part numbers, A7:A8253 and the
unit prices for each part # is in, G7:G8253 (Part # in A7 unit price is in G7
and so on).

I have now created another worksheet "ABC" but with only 120 or so part #'s
(that were filtered from Spend Detail) but didn't bring over the unit costs.
Is there a function to take the part #'s on sheet ABC and go and look for it
on sheet Spend Detail and bring over the corresponding unit cost?

It would take to much time to filter through and find the unit costs manually.

THanks,
BAS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BAS BAS is offline
external usenet poster
 
Posts: 14
Default Lookup function

Worked...

Thanks,
BAS

"Sebastian" wrote:

VLOOKUP will do that.

Source Table: (I'm naming the workseet "SOURCE" for illustration purposes).
A B C D E F
G
1 Part # Label Label Label Label Label
Unit Price
2 67595
$69.99
3 15359
$35.49
4 85695
$21.99
.
.
.
8253 12345
$11.99

Target Table
A B
1 Part # Unit Cost
2 67595 =VLOOKUP(A2,SOURCE!$A$1:$G$8253,7,FALSE)

You then copy that formula all the way down for the 120 cells that you have
on the target table and you'll get the unit prices that correspond to each
part number on it.

Hope this helps.




"BAS" wrote:

I have a worksheet "Spend Detail" with 8000+ part numbers, A7:A8253 and the
unit prices for each part # is in, G7:G8253 (Part # in A7 unit price is in G7
and so on).

I have now created another worksheet "ABC" but with only 120 or so part #'s
(that were filtered from Spend Detail) but didn't bring over the unit costs.
Is there a function to take the part #'s on sheet ABC and go and look for it
on sheet Spend Detail and bring over the corresponding unit cost?

It would take to much time to filter through and find the unit costs manually.

THanks,
BAS

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 combine an IF Function with a lookup function to determine [email protected] Excel Worksheet Functions 1 December 5th 06 06:09 AM
lookup function .... I think??? cameronfunk Excel Worksheet Functions 2 May 31st 06 06:33 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
Lookup Function? pomalley Excel Worksheet Functions 7 May 3rd 05 09:08 PM
Lookup function Natalie Excel Worksheet Functions 1 May 3rd 05 07:40 AM


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