×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

excel use three values to return one

excel use three values to return one

excel use three values to return one

(OP)
using the values in column 1 and column 2 to select a unique row and a value in row one to return a single number

example input column 1 = 12 / input in column 2 = 3  / input to row 1 = 38 would return 125


0    0    20    26    32    38    44    51
10    2.50    60    75    85    100    110    120
10    3.50    75    85    95    110    120    130
12    2.50    70    85    100    115    120    140
12    3.00    80    100    110    125    130    145
12    3.50    95    110    120    135    145    160
14    2.50    85    100    120    145    165    195
14    3.00    95    115    130    155    180    210
14    3.50    105    130    150    175    190    220
14    4.00    130    150    170    200    210    235
16    2.50    105    130    150    175    200    235
16    3.00    115    140    165    185    220    250
16    3.50    130    155    170    200    225    260
16    4.00    160    185    205    225    245    280
18    2.50    125    160    185    215    240    280
18    3.00    135    180    205    230    250    290

RE: excel use three values to return one

Hi Conveyorbud:

Let us say your data columns have range names Column1, column2, ... through column8, then you can use the following array formula in EXCEL ...

=INDEX(Column6,MATCH(12&CHAR(1)&3,Column1&CHAR(1)&Column2,0))

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
ANAND Enterprises LLC
http://www.energyefficientbuild.com

RE: excel use three values to return one

Hi Conveyorbud:

In the solution I posted above ...

=INDEX(Column6,MATCH(12&CHAR(1)&3,Column1&CHAR(1)&Column2,0))

it uses 12 and 3 as MATCH values in column1 and column2 to locate the corresponding value in column6. I did not follow your statement regarding

input to row 1 = 38

Please explain what this one means and where is 38 in the data that you posted.

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
ANAND Enterprises LLC
http://www.energyefficientbuild.com

RE: excel use three values to return one

Assuming the data you provided is entered in a1:h16, then

CODE

=INDEX(C2:H16,MATCH(1,(A2:A16=12)*(B2:B16=3),0),MATCH(38,C1:H1,0))
returns 125
The formula must be entered as an array formula using the Ctrl-Shift-Enter.  Of course you can replace the 3,12 and 38 with cell references.

RE: excel use three values to return one

Cummings54,
A star for a super sleek solution!

yakpol

RE: excel use three values to return one

(OP)
thanks cummings54, that worked slick!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources