Need help writing formula

DKRbella0814

Board Regular
Joined
Aug 10, 2008
Messages
155
I have a workbook which contains two spreadsheets

spreadsheet 1 = 'SweetSpotCalculator'

spreadsehet 2 = 'MfgData'


Spreadsheet 1 has a number of data points which need summarized from the 'MfgData' sheet through use of formulas. Two specific data points that need to be summarized are the following:

-Constraint Operation = Longest Run Time (minutes per piece MPP)

-Associated S/U Time of the Constraint Operation (hrs)


On the 'MfgData' worksheet, the information is arranged as follows:

col A = Job#
col B = Customer
Col C = Op 10
col D = S/U time - op 10
col E = Op 20
col F = S/U time - op 20
col G = Op 30
col H = S/U time - op 30
col I = Op 40
col J = S/U time - op 40
col K = Op 50
col L = S/U time - op 50


For the first data point on the 'SweetSpotCalculator' worksheet, I have written the following formula to return the value of the operation with the longest run time:

=Max(vlookup(Job#(relative cell reference on curr worksheet), 'MfgData'!$a$2:$l$20,3,false), vlookup(job#, 'MfgData'!$a$2:$l$20,5,false),
vlookup(job#, 'MfgData'!$a$2:$l$20,7,false),vlookup(job#, 'MfgData'!$a$2:$l$20,9,false),vlookup(job#, 'MfgData'!$a$2:$l$20,11,false))


What I would now like to do is to write a formula to return the value of the associated S/U time of the longest running operation (which will always be 1 column to the right of the column with the longest running op); the issue is that the above formula returns the VALUE of the longest running op and not the CELL REFERENCE.

Can someone please help me out?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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