COMPLICATED FORMULA WITH EMBEDDED HLOOKUP

T

txm49

OBJECTIVE: Use HLOOKUP to return datapoint. Then use a formula in a
separate cell to return datapoint in first column to right.

Sample Data Array:

Col A Col B
Row 1 Date
Row 2 Plan Forecast
Row 3 10 9
Row 4 11 8

Sample HLookup Formula: HLOOKUP(Ref,A1:b4,3,false) Returns 10 (Plan Value),
NEED TO RETURN 9 (Forecast Value) in separate formula.
 
S

smartin

txm49 said:
OBJECTIVE: Use HLOOKUP to return datapoint. Then use a formula in a
separate cell to return datapoint in first column to right.

Sample Data Array:

Col A Col B
Row 1 Date
Row 2 Plan Forecast
Row 3 10 9
Row 4 11 8

Sample HLookup Formula: HLOOKUP(Ref,A1:b4,3,false) Returns 10 (Plan Value),
NEED TO RETURN 9 (Forecast Value) in separate formula.

Can't tell from your example how the nontrivial cases will be presented.
Assuming you have other blocks of information in columns to the right,
maybe this will do it for you:

Plan:
=INDEX($A$3:$K$3,1,MATCH("Date",$A$1:$K$1,0))

Forecast:
=INDEX($A$3:$K$3,1,1+MATCH("Date",$A$1:$K$1,0))

Replace "Date" with reference as appropriate.
 
T

txm49

This is perfect! Thanks!

smartin said:
Can't tell from your example how the nontrivial cases will be presented.
Assuming you have other blocks of information in columns to the right,
maybe this will do it for you:

Plan:
=INDEX($A$3:$K$3,1,MATCH("Date",$A$1:$K$1,0))

Forecast:
=INDEX($A$3:$K$3,1,1+MATCH("Date",$A$1:$K$1,0))

Replace "Date" with reference as appropriate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Why hlookup error when I insert table array formula? 2
Hlookup 0
Hlookup and sum formula 3
hlookup help 5
Hlookup function 1
Vlookup and Hlookup 3
hlookup problem 1
HLOOKUP with variable rows 3

Top