Index Double Match Offset

ruckuz

New Member
Joined
Dec 28, 2010
Messages
36
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Employee: Jane Doe[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Regular[/TD]
[TD]$68,000[/TD]
[/TR]
[TR]
[TD]Vacation[/TD]
[TD]$1,000[/TD]
[/TR]
</tbody>[/TABLE]






Hi Excel Experts,
I need some help w/ Index Multi Match Offset.

As you can see A1 is Employee: Jane Doe and B2 is $68K. I need an index double match offset formula that will look for Jane Doe and Regular and gives me $68K as the answer. I know index match and offset will do it but I don't know how quite to put these 3 formulas together. Many Thanks!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Maybe:

Assuming that in F2 you have the name Jane Doe

=INDEX(B:B,MATCH(F2,A:A,0)+1)

Or

=OFFSET(INDIRECT("A" & MATCH(F2,A:A,0)),1,1)
 
Last edited:
Upvote 0
Maybe:

Assuming that in F2 you have the name Jane Doe

=INDEX(B:B,MATCH(F2,A:A,0)+1)

Or

=OFFSET(INDIRECT("A" & MATCH(F2,A:A,0)),1,1)

Hi Thanks. But this works well until there is
Jane Doe
Regular $68K
Regualr $2K

The answer should be $70K. i guess it should be a sumproduct formula
 
Upvote 0
Do you have more information on the sheet?
You could put in exactly what data you have.
 
Upvote 0
Do you have more information on the sheet?
You could put in exactly what data you have.

[TABLE="width: 568"]
<tbody>[TR]
[TD]Doe, Jane[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Regular[/TD]
[TD]1114.75[/TD]
[TD]15.00[/TD]
[TD]16721.25[/TD]
[/TR]
[TR]
[TD]Regular[/TD]
[TD]54.25[/TD]
[TD]16.00[/TD]
[TD]868.00[/TD]
[/TR]
[TR]
[TD]Overtime[/TD]
[TD]0.25[/TD]
[TD]22.50[/TD]
[TD]5.63[/TD]
[/TR]
</tbody>[/TABLE]

Jane Doe will be in A1 it should sum Doe, Jand and all of Regular in column D
 
Last edited:
Upvote 0
But you have more names on the page or just Doe.
If only Doe exists, it would suffice to add column D if in column A it says "Regular"
 
Upvote 0
But you have more names on the page or just Doe.
If only Doe exists, it would suffice to add column D if in column A it says "Regular"

I have more names. I just present Jane Doe as an example.

The data lined up like Jane Doe but w/ different name & different numbers for regular. need to sum up all "regular" w/ a particular person but the numbers is one row lower than the name.
 
Upvote 0
It is not easy if we do not have the information, I will assume that you have your information in this way:


<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:89.35px;" /><col style="width:77.94px;" /><col style="width:62.73px;" /><col style="width:76.99px;" /><col style="width:18.06px;" /><col style="width:86.5px;" /><col style="width:88.4px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td><td >F</td><td >G</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >Doe, Jane </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >Regular</td><td style="text-align:right; ">1114.75</td><td style="text-align:right; ">15.00</td><td style="text-align:right; ">16721.25</td><td > </td><td >Doe, Jane </td><td style="text-align:right; ">17589.25</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >Regular</td><td style="text-align:right; ">54.25</td><td style="text-align:right; ">16.00</td><td style="text-align:right; ">868.00</td><td > </td><td >Smith, John</td><td style="text-align:right; ">37</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >Overtime</td><td style="text-align:right; ">0.25</td><td style="text-align:right; ">22.50</td><td style="text-align:right; ">5.63</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >Smith, John</td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td >Regular</td><td style="text-align:right; ">1.00</td><td style="text-align:right; ">3.00</td><td style="text-align:right; ">15.00</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td >Regular</td><td style="text-align:right; ">2.00</td><td style="text-align:right; ">4.00</td><td style="text-align:right; ">22.00</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td >Overtime</td><td style="text-align:right; ">3.00</td><td style="text-align:right; ">5.00</td><td style="text-align:right; ">88.00</td><td > </td><td > </td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >G2</td><td >{=SUM(IF(OFFSET($A$1,MATCH(F2,$A$1:$A$10,0),0,MIN(IF($D$2:$D$10="",ROW($D$2:$D$10))))="Regular",OFFSET($A$1,MATCH(F2,$A$1:$A$10,0),3,MIN(IF($D$2:$D$10="",ROW($D$2:$D$10))))))}</td></tr><tr><td >G3</td><td >{=SUM(IF(OFFSET($A$1,MATCH(F3,$A$1:$A$10,0),0,MIN(IF($D$2:$D$10="",ROW($D$2:$D$10))))="Regular",OFFSET($A$1,MATCH(F3,$A$1:$A$10,0),3,MIN(IF($D$2:$D$10="",ROW($D$2:$D$10))))))}</td></tr></table></td></tr></table>

Array formulas
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
 
Upvote 0
It is not easy if we do not have the information, I will assume that you have your information in this way:


ABCDEFG
Doe, Jane
Regular Doe, Jane
Regular Smith, John
Overtime
Smith, John
Regular
Regular
Overtime

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:89.35px;"><col style="width:77.94px;"><col style="width:62.73px;"><col style="width:76.99px;"><col style="width:18.06px;"><col style="width:86.5px;"><col style="width:88.4px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]

[TD="align: right"]1114.75[/TD]
[TD="align: right"]15.00[/TD]
[TD="align: right"]16721.25[/TD]

[TD="align: right"]17589.25[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]

[TD="align: right"]54.25[/TD]
[TD="align: right"]16.00[/TD]
[TD="align: right"]868.00[/TD]

[TD="align: right"]37[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]

[TD="align: right"]0.25[/TD]
[TD="align: right"]22.50[/TD]
[TD="align: right"]5.63[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]

[TD="align: right"]1.00[/TD]
[TD="align: right"]3.00[/TD]
[TD="align: right"]15.00[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]

[TD="align: right"]2.00[/TD]
[TD="align: right"]4.00[/TD]
[TD="align: right"]22.00[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]

[TD="align: right"]3.00[/TD]
[TD="align: right"]5.00[/TD]
[TD="align: right"]88.00[/TD]

</tbody>

CellFormula
G2{=SUM(IF(OFFSET($A$1,MATCH(F2,$A$1:$A$10,0),0,MIN(IF($D$2:$D$10="",ROW($D$2:$D$10))))="Regular",OFFSET($A$1,MATCH(F2,$A$1:$A$10,0),3,MIN(IF($D$2:$D$10="",ROW($D$2:$D$10))))))}
G3{=SUM(IF(OFFSET($A$1,MATCH(F3,$A$1:$A$10,0),0,MIN(IF($D$2:$D$10="",ROW($D$2:$D$10))))="Regular",OFFSET($A$1,MATCH(F3,$A$1:$A$10,0),3,MIN(IF($D$2:$D$10="",ROW($D$2:$D$10))))))}

<tbody>
</tbody>

<tbody>
</tbody>


Array formulas
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

Yes i do!!! Thank you very much for your help!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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