INDEX MATCH Formula? - Match value and determine if number in range return a value

swiffer01

New Member
Joined
Feb 4, 2014
Messages
9
Trying to write a formula for the data sample below. TBL 1 and TBL 2 actual data sets are much larger and contain additional values.

If TBL 1 REP TYPE "AE1-C" = TBl 2 REP TYPE "AE1-C and TBL 1 TOTAL ACCTS
is between TBL 2 Total Accts Low and Total Accts High, return Points
TBL 1TBL 2
REP TYPE TOTAL ACCTSREP TYPETotal Accts LowTotal Accts HighPoints
AE1-C1041AE1-C03740
AE1-C178AE1-C3753991
AE1-C1159AE1-C4004242
AE1-C1028AE1-C4254493
AE1-C1660AE1-C4505004
AE2-C77AE1-C50150000
AE1-C840AE2-C03740
AE1-C719AE2-C3753991
MAE1-C180AE2-C4004242
AE1-C742AE2-C4254493
AE1-C754AE2-C4505004
AE1-C1330AE2-C50150000
MAE1-C412AE3-C03740
AE1-C1440AE3-C3753991
MAE1-C1333AE3-C4004242
AE1-C463AE3-C4254493
AE2-C1074AE3-C4505004
AE1-C938AE3-C50150000
AE1-C979MAE1-C01040
MAE1-C77MAE1-C1051141
MAE1-C1151242
MAE1-C1251343
MAE1-C1351504
MAE1-C15150000

<colgroup><col><col><col><col span="4"></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Where do you want points returned? Next to each line in TBL 1?

The following will do that:
=INDEX($D$3:$G$26,MATCH($A3,IF(($B3 >= $E$3:$E$26)*($B3 <= $F$3:$F$26),$D$3:$D$26),0),4)

TBL 1 data starts in A3, TBL 2 data starts in D3, the above formula is in C3 (entered with ctrl-shift-enter) and dragged down.

HTH,
~ Jim
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,944
Members
449,095
Latest member
nmaske

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