Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Match data in 2 columns and return data from 3rd column

I know I have done this in the past but can't remember how I did it.

I have my main spreadsheet, customer.xls with zip and weights.

Column A Column B
Zip Wt

I have a second spreadsheet, prices.xls that has zip, weights and
dollar amounts. I can't copy and paste because this spreadsheet is
only for shipments weighing less than 200 lbs.

Column A Column B Column C
Zip Wt $


I need the following, If the zip and weight on the customer.xls is
the same as the zip and wt on the price spreadsheet then return the $
on the customer.xls.

Can anyone help?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Match data in 2 columns and return data from 3rd column

Saved from a previous post:

If you want exact matches for just two columns (and return a value from a
third), you could use:

=index(othersheet!$c$1:$c$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100),0))

(all in one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.

This returns the value in othersheet column C when column A and B (of
othersheet) match A2 and B2 of the sheet with the formula.

And you can add more conditions by just adding more stuff to that product
portion of the formula:

=index(othersheet!$d$1:$d$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100)
*(c2=othersheet!$c$1:$c$100),0))

gwtreece wrote:

I know I have done this in the past but can't remember how I did it.

I have my main spreadsheet, customer.xls with zip and weights.

Column A Column B
Zip Wt

I have a second spreadsheet, prices.xls that has zip, weights and
dollar amounts. I can't copy and paste because this spreadsheet is
only for shipments weighing less than 200 lbs.

Column A Column B Column C
Zip Wt $

I need the following, If the zip and weight on the customer.xls is
the same as the zip and wt on the price spreadsheet then return the $
on the customer.xls.

Can anyone help?


--

Dave Peterson
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
counting data in one column and match with data in another column jenny Excel Discussion (Misc queries) 1 October 26th 06 09:16 PM
LOOKUP two data sets for match - return 1 or 0 - Please help! Jay Excel Worksheet Functions 1 September 26th 06 12:10 PM
match columns and associated data RayB Excel Discussion (Misc queries) 2 July 18th 06 07:34 PM
MATCH UP DATA IN COLUMNS jickes Excel Worksheet Functions 2 March 2nd 06 02:14 AM
Match Each Numeric occurrence and Return Individual Rows of Data Sam via OfficeKB.com Excel Worksheet Functions 4 October 13th 05 04:22 AM


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