Moving Target?

mniedert

Board Regular
Joined
Apr 13, 2005
Messages
72
I have a spreadsheet I use to track inventory. Setup like this:
Data Center Spare Pool Analysis.xls
ABCDEFG
1DesiredPoolMinCurrentCurrentSpare
2forPlannedMarginThresholdVariance8/23/20068/30/2006
3
46'Hose644-24442
510'Hose202081108101
615'Hose1515-6129
725'Hose32-111
840'Hose0
960'Hose32-111
Sheet3


I want the Current Variance column to calculate only on the data in the column which has the heading "Current Spare". That way I could move "Current Spare" from column to column and the Variance would change.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
D4=INDEX(F4:IV4,MATCH("Current Spare",F$1:IV$1,0))-C4
copied down

Or, if your "Current Spare" is always going to be the rightmost value in the row, try:

D4=LOOKUP(9.99999999999999E307,F4:IV4)-C4
copied down

The advantage of the latter is that you don't have to remember to put "Current Spare" in a cell for the update to happen.
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,546
Members
449,038
Latest member
Guest1337

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