Match criteria and return text from another cell

dacowgirl0102

New Member
Joined
Dec 20, 2003
Messages
9
I'm trying to perform an exact match from sheet1 $D2 to Sheet2 $F:$F, sheet1 $B2 to Sheet2 $D:$D, and sheet1 $E2 to Sheet2 $H:$H in order to return sheet2 $Z:$Z. Sheet1's D2 and E2 are numbers, B2 is a letter, and Z should return something like W 14 X 22#

Here are some formulas that I've tried:

=LOOKUP("$D2 AND $E2","'Heat Summary'!$F:$F AND 'Heat Summary'!$G:$G",'Heat Summary'!$Z:$Z) I get a #Value! error

=LOOKUP($D2,'Heat Summary'!$F$1:$F$366,'Heat Summary'!$Z$1:$Z$366) This one returns a value, but the wrong one

=SUMPRODUCT(('Heat Summary'!$F$1:$F$366=$D2)*('Heat Summary'!$D$1:$D$366=$B2)*('Heat Summary'!$H$1:$H$366=$E2)*('Heat Summary'!$Z$1:$Z$366)) And I get #Value! again.


Any help would be greatly appriciated.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Column headings are in row1 and actual data starts in row 2 of sheet2. there are 366 rows of data in sheet 2, but as time goes by, I'll be adding more rows, so having an indifinite number of rows is preferable. Yes AA is free.
 
Upvote 0
dacowgirl0102 said:
Column headings are in row1 and actual data starts in row 2 of sheet2. there are 366 rows of data in sheet 2, but as time goes by, I'll be adding more rows, so having an indifinite number of rows is preferable. Yes AA is free.

In AA1 enter: Concat

In AA2 enter & copy down:

=F2&CHAR(127)&D2&CHAR(127)&H2

Now try:

INDEX('Heat Summary'!$Z:$Z,MATCH($D2&CHAR(127)&$B2&CHAR(127)&$E2,'Heat Summary'!$AA:$AA,0))
 
Upvote 0
Hi dacogirl:

In addition to valuable contribution from Aladin -- and that is the way to go -- I have tried to look at your SUMPRODUCT formulation ...

I noticed that in your formula, you have used 'Heat Summary' sheet in place of Sheet2 in your narrative description.

If I have understood correctly what you are trying to do in reference to your SUMPRODUCT formulation, I can make it work with the following modification to your formula ...

=INDEX('Heat Summary'!$Z$1:$Z$366,SUMPRODUCT(('Heat Summary'!$F$1:$F$366=$D2)*('Heat Summary'!$D$1:$D$366=$B2)*('Heat Summary'!$H$1:$H$366=$E2)*ROW($A$1:$A$366)))
 
Upvote 0
Yogi Anand said:
Hi dacogirl:

I noticed that in your formula, you have used 'Heat Summary' sheet in place of Sheet2 in your narrative description.

If I have understood correctly what you are trying to do in reference to your SUMPRODUCT formulation, I can make it work with the following modification to your formula ...

=INDEX('Heat Summary'!$Z$1:$Z$366,SUMPRODUCT(('Heat Summary'!$F$1:$F$366=$D2)*('Heat Summary'!$D$1:$D$366=$B2)*('Heat Summary'!$H$1:$H$366=$E2)*ROW($A$1:$A$366)))

as shown in the following illustration ...

Among a few disadvantages of such a misplaced use of SumProduct for retrieval purposes, here the obvious inefficiency will be most appealing.
 
Upvote 0

Forum statistics

Threads
1,224,900
Messages
6,181,635
Members
453,059
Latest member
jkevin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top