Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Need a formula to look up 2 values and return result from 3rd colu

I have 2 spreadsheets. Source spreadsheet has 3 column a = customer ID,
Column B = Item ID, Column C = Bill rate.

2nd spreadsheet has Columns a-u. Column C=Customer Id, Column J = Item ID,
which will match column A & B in the source spreadsheet. Then I have column P
= Billing rate. For this field I need to pull the billing rate from the
source spreadsheet. So in other words if column C & J in 2nd spreadsheet
matches column A & B in source spreadsheet then I it to return the value from
Column C in the source sheet into the 2nd spreadsheet in column P. They must
match exactly to return the customer billing rate. I used this formula but
it is not working:

=VLOOKUP(C2&"/"&J2,'[customer billing rates.xls]Sheet1'!$A$1:$C$62182,3). I
used VLookup before but only with one lookup value. I have played around
with Match and Index. Thanks for any help and I hope that I am very clear in
my explanation.

Example:

Source Spreadsheet:

Columns

A2 B2 C2
Cust. ID Item ID Billing rate
Joe Blow 2XR 50.00
Mandy Moore 2XR 40.00
Sandy Shore 2XR 30.00

Lookup Spreadsheet:


C2 J2 P2
Cust Id Item ID Billing Rate
Joe Blow 2XR ?????
Mandy Moore 2XR ??????
Sandy Shore 2XR ?????

Also, I get an error = not able to save due to resources - choose less data
or ...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Need a formula to look up 2 values and return result from 3rd colu

=SUMPRODUCT(--(customer_ID=Sheet2!C2),--(Item_ID=Sheet2!J2),Bill_rate)


"klafert" wrote:

I have 2 spreadsheets. Source spreadsheet has 3 column a = customer ID,
Column B = Item ID, Column C = Bill rate.

2nd spreadsheet has Columns a-u. Column C=Customer Id, Column J = Item ID,
which will match column A & B in the source spreadsheet. Then I have column P
= Billing rate. For this field I need to pull the billing rate from the
source spreadsheet. So in other words if column C & J in 2nd spreadsheet
matches column A & B in source spreadsheet then I it to return the value from
Column C in the source sheet into the 2nd spreadsheet in column P. They must
match exactly to return the customer billing rate. I used this formula but
it is not working:

=VLOOKUP(C2&"/"&J2,'[customer billing rates.xls]Sheet1'!$A$1:$C$62182,3). I
used VLookup before but only with one lookup value. I have played around
with Match and Index. Thanks for any help and I hope that I am very clear in
my explanation.

Example:

Source Spreadsheet:

Columns

A2 B2 C2
Cust. ID Item ID Billing rate
Joe Blow 2XR 50.00
Mandy Moore 2XR 40.00
Sandy Shore 2XR 30.00

Lookup Spreadsheet:


C2 J2 P2
Cust Id Item ID Billing Rate
Joe Blow 2XR ?????
Mandy Moore 2XR ??????
Sandy Shore 2XR ?????

Also, I get an error = not able to save due to resources - choose less data
or ...

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Need a formula to look up 2 values and return result from 3rd

I guess I should have said instead of 2nd spreadsheet - 2nd workbooks. I am
using to different work books. So instead of Sheet2 - I need to reference
the source spreadsheet which is customer billing rates.xls. Both sheets are
in the same directory. C:\time ticket info\customer billing rates.xls. I
put in your formula but wasn't sure what the -- refers to??? I copied the
formula and then it prompts me for what I assume is the source spreadsheet
(customer billing rates.xls). When I choose that file then I get the error
#name? (invalid name error). Can you tell me what I did wrong or reference
my spreadsheet name so that ... I works right. You have the dashes and I am
not sure what I am supposed to replace them with. There is no sheet2.

Thanks for your help.

"Teethless mama" wrote:

=SUMPRODUCT(--(customer_ID=Sheet2!C2),--(Item_ID=Sheet2!J2),Bill_rate)


"klafert" wrote:

I have 2 spreadsheets. Source spreadsheet has 3 column a = customer ID,
Column B = Item ID, Column C = Bill rate.

2nd spreadsheet has Columns a-u. Column C=Customer Id, Column J = Item ID,
which will match column A & B in the source spreadsheet. Then I have column P
= Billing rate. For this field I need to pull the billing rate from the
source spreadsheet. So in other words if column C & J in 2nd spreadsheet
matches column A & B in source spreadsheet then I it to return the value from
Column C in the source sheet into the 2nd spreadsheet in column P. They must
match exactly to return the customer billing rate. I used this formula but
it is not working:

=VLOOKUP(C2&"/"&J2,'[customer billing rates.xls]Sheet1'!$A$1:$C$62182,3). I
used VLookup before but only with one lookup value. I have played around
with Match and Index. Thanks for any help and I hope that I am very clear in
my explanation.

Example:

Source Spreadsheet:

Columns

A2 B2 C2
Cust. ID Item ID Billing rate
Joe Blow 2XR 50.00
Mandy Moore 2XR 40.00
Sandy Shore 2XR 30.00

Lookup Spreadsheet:


C2 J2 P2
Cust Id Item ID Billing Rate
Joe Blow 2XR ?????
Mandy Moore 2XR ??????
Sandy Shore 2XR ?????

Also, I get an error = not able to save due to resources - choose less data
or ...

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need a formula to look up 2 values and return result from 3rd

With that much data this will only work *properly* with the source file
open:

=SUMPRODUCT(--('[Customer Billing
Rates.xls]Sheet1'!A2:A62182=C2),--('[Customer Billing
Rates.xls]Sheet1'!B2:B62182=J2),'[Customer Billing
Rates.xls]Sheet1'!C2:C62182)

If the source file is closed you might get this error message:

http://img391.imageshack.us/img391/3284/errormf5.jpg

This means your trying to reference too much data in a closed file. The
limit I run into is 16376 rows (Excel 2002)

--
Biff
Microsoft Excel MVP


"klafert" wrote in message
...
I guess I should have said instead of 2nd spreadsheet - 2nd workbooks. I
am
using to different work books. So instead of Sheet2 - I need to reference
the source spreadsheet which is customer billing rates.xls. Both sheets
are
in the same directory. C:\time ticket info\customer billing rates.xls. I
put in your formula but wasn't sure what the -- refers to??? I copied the
formula and then it prompts me for what I assume is the source spreadsheet
(customer billing rates.xls). When I choose that file then I get the
error
#name? (invalid name error). Can you tell me what I did wrong or
reference
my spreadsheet name so that ... I works right. You have the dashes and I
am
not sure what I am supposed to replace them with. There is no sheet2.

Thanks for your help.

"Teethless mama" wrote:

=SUMPRODUCT(--(customer_ID=Sheet2!C2),--(Item_ID=Sheet2!J2),Bill_rate)


"klafert" wrote:

I have 2 spreadsheets. Source spreadsheet has 3 column a = customer
ID,
Column B = Item ID, Column C = Bill rate.

2nd spreadsheet has Columns a-u. Column C=Customer Id, Column J =
Item ID,
which will match column A & B in the source spreadsheet. Then I have
column P
= Billing rate. For this field I need to pull the billing rate from
the
source spreadsheet. So in other words if column C & J in 2nd
spreadsheet
matches column A & B in source spreadsheet then I it to return the
value from
Column C in the source sheet into the 2nd spreadsheet in column P.
They must
match exactly to return the customer billing rate. I used this formula
but
it is not working:

=VLOOKUP(C2&"/"&J2,'[customer billing
rates.xls]Sheet1'!$A$1:$C$62182,3). I
used VLookup before but only with one lookup value. I have played
around
with Match and Index. Thanks for any help and I hope that I am very
clear in
my explanation.

Example:

Source Spreadsheet:

Columns

A2 B2 C2
Cust. ID Item ID Billing rate
Joe Blow 2XR 50.00
Mandy Moore 2XR 40.00
Sandy Shore 2XR 30.00

Lookup Spreadsheet:


C2 J2 P2
Cust Id Item ID Billing Rate
Joe Blow 2XR ?????
Mandy Moore 2XR ??????
Sandy Shore 2XR ?????

Also, I get an error = not able to save due to resources - choose less
data
or ...



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
Look up 2 values, return result in a different workbook Positive Excel Worksheet Functions 12 July 2nd 07 07:28 PM
If specific text result,... corresponing cell info in another colu Steve Excel Worksheet Functions 7 March 9th 07 10:18 PM
return the value in a cell at the intersection of a row and a colu Dave F Excel Discussion (Misc queries) 1 January 10th 07 05:44 PM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
Advanced Filter for Values in Column M greater than Values in Colu SteveC Excel Discussion (Misc queries) 3 May 2nd 06 07:55 PM


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