IF Statement with Vlookup, largest amount

calinini

New Member
Joined
Jul 13, 2015
Messages
9
Hello!

I'm hoping for help on a formula.

Here is my source data:

ABCDEFGHIJKLMNO
1Employee IDNameJobCodeJobtitleStore NumberSecondary StoreHire DtRehire DtTerminationDisciplinaryStart DateEnd DateDaysLOAAnnual Rate
21234EEA01574OTSA102110/22/1612/14/1812/14/1812/31/18180
$11,700.00

<tbody>
</tbody>
32345EEB01574OTSA11077/6/932/5/182/19/182/5/182/19/18150
$11,700.00

<tbody>
</tbody>
43456EEC01574OTSA1131
4/30/1979

<tbody>
</tbody>
5/22/2014

<tbody>
</tbody>
01/01/20183/31/18900
$11,502.40

<tbody>
</tbody>
53456EEC01574OTSA11314/30/1979
5/22/2014

<tbody>
</tbody>
4/1/201812/31/182750
$11,762.40

<tbody>
</tbody>
64567EED01538SM4103
11/14/2005

<tbody>
</tbody>
01/01/201809/16/182590
$36,358.40

<tbody>
</tbody>
74567EED01574OTSA410311/14/20059/17/1812/31/181060
$10,608.00

<tbody>
</tbody>
85678EEE01574OTSA3023
4/17/1995

<tbody>
</tbody>
01/01/20183/31/18900
$26,228.80

<tbody>
</tbody>
95678EEE01574OTSA30234/17/19954/01/18
12/31/2018

<tbody>
</tbody>
275$29,120.00

<tbody>
</tbody>





Then I have another worksheet that consolidates rows and gives me the total number of days an employee worked the same position in the same store. In the example below, you can see that Rows 4&5 above are now one single row below, #4 as well as rows 8&9 above, are now row 7 below. Employee ID is a unique identifier.


ABCDEFGHIJKL
1Employee IDNameJobCodeJobtitleStore NumberSecondary StoreHire DtRehire DtTerminationDisciplinaryDaysLOA
21234EEA01574OTSA102110/22/1612/14/18180
32345EEB01574OTSA11077/6/932/5/182/19/18150
43456EEC01574OTSA11314/30/1979
5/22/2014

<tbody>
</tbody>
3650
54567EED01538SM4103
11/14/2005

<tbody>
</tbody>
2590
64567EED01574OTSA410311/14/20051060
75678EEE01574OTSA3023
4/17/1995

<tbody>
</tbody>
3650

<tbody>
</tbody>
The formula I need is the largest annual rate to be inputted on my second worksheet where the employee ID, Job Code, and Store Number are the same as the source data.

EXAMPLE:

ABCDEFGHIJKLM
1Employee IDNameJobCodeJobtitleStore NumberSecondary StoreHire DtRehire DtTerminationDisciplinaryDaysLOAAnnual Rate
21234EEA01574OTSA102110/22/1612/14/1818
$11,700.00

<tbody>
</tbody>
32345EEB01574OTSA11077/6/932/5/182/19/1815
$11,700.00

<tbody>
</tbody>
43456EEC01574OTSA11314/30/1979
5/22/2014

<tbody>
</tbody>
365
$11,762.40

<tbody>
</tbody>
54567EED01538SM4103
11/14/2005

<tbody>
</tbody>
259$36,358.40
64567EED01574OTSA410311/14/2005106$10,608.00
75678EEE01574OTSA3023
4/17/1995

<tbody>
</tbody>
365$29,120.00

<tbody>
</tbody>









I know it is a combination of IF and VLOOKUP's but I have zero room for error and my actual data is 5000+ Rows.

Thank you in advance for your help.

Sincerely,

Me.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Do you have MAXIFS on your excel version? Vlookup wont help you here.
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,539
Members
449,088
Latest member
RandomExceller01

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