Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 153
Default Vlookup, match, or sumproduct?

Hello,

I've got two ranges on a sheet, and I need to match a row/column
definition in Range 1 with the row/column definition in Range 2, and
then return a corresponding value in Range 2 to Range 1. Here's an
example of what I need:

Range 1

ColA ColB ColC ColD ColE
Row1 Control 3 30 100
Row2 a
Row3 b
Row4 c


Range 2

ColA ColB ColC
a 30 4.5
b 3 18
c Control 99


What I need to do is fill the cells in Range 1. For example,
matching D1&A2 (30a) in Range 1 with B1&A1 (30a) in Range 2, and
returning to D2 in Range 1 the corresponding value in Range 2 (4.5).
The values in Row1 of Range 1 and ColB of Range 2 will change.

I hope I've made that clear enough. I appreciate any advice. Please
let me know if you need more or amplifying info to help. Thanks!

Frank
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup, match, or sumproduct?

One way ..

Assuming range2 is within A1:C3 in Sheet2,
range1 is within cols A to E in Sheet1
(with col headers in B1:E1, row headers in A2 down)

In Sheet1,

Put in B2's formula bar, then array-enter by pressing CTRL+SHIFT+ENTER
(instead of just pressing ENTER):
=INDEX(Sheet2!$C$1:$C$3,MATCH(1,(Sheet2!$A$1:$A$3= $A2)*(Sheet2!$B$1:$B$3=B$1),0))
Copy across and fill down to populate the grid

Adapt the ranges to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Phrank" wrote:
Hello,

I've got two ranges on a sheet, and I need to match a row/column
definition in Range 1 with the row/column definition in Range 2, and
then return a corresponding value in Range 2 to Range 1. Here's an
example of what I need:

Range 1

ColA ColB ColC ColD ColE
Row1 Control 3 30 100
Row2 a
Row3 b
Row4 c


Range 2

ColA ColB ColC
a 30 4.5
b 3 18
c Control 99


What I need to do is fill the cells in Range 1. For example,
matching D1&A2 (30a) in Range 1 with B1&A1 (30a) in Range 2, and
returning to D2 in Range 1 the corresponding value in Range 2 (4.5).
The values in Row1 of Range 1 and ColB of Range 2 will change.

I hope I've made that clear enough. I appreciate any advice. Please
let me know if you need more or amplifying info to help. Thanks!

Frank

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
VLOOKUP and LEN/ISNA to match names? LTUser54 Excel Worksheet Functions 6 May 22nd 06 09:08 PM
VLOOKUP and MATCH w/ name search? LTUser54 Excel Worksheet Functions 2 May 22nd 06 04:41 PM
Return alternate value if VLookup can't find match SueJB Excel Worksheet Functions 7 January 5th 06 09:30 AM
Partial String Match Using VLOOKUP cdhmotes Excel Worksheet Functions 4 December 26th 05 10:26 PM
Vlookup returns incorrect match Smichaud Excel Discussion (Misc queries) 2 November 30th 04 10:51 AM


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