Cross Linking Worksheets Calculations

CrustyR1

New Member
Joined
May 23, 2014
Messages
31
Hi All,

I've gotten this far now I'm stuck on this one.

I have an entry form that has a combo box in column B & C (which I have removed and replaced with hard text for forum).
The specific combo box no is placed in column D.
Column E is the overall height and column's F & G are gaps to be deducted. Top gap = 2.5, Bottom gap = 0, Mid Gap = 2.5.

For example:-
when a 2 drawer is selected in combo box this specific No 49 is looking up/matching the result in the drawer fronts worksheet matrix which has all the calculations.
when a 3 drawer is selected in combo box this specific No 50 is looking up/matching the result in the drawer fronts worksheet matrix which has all the calculations.
and so on......

It all works great so when a different combo box item is selected say a 6 drawer the row calculations will change to suit.
Noting - there can be other combo box items selected out of the match range which there is no result needed in columns I - N.

The issue I'm having is I want the user to be able to override the formulas in entry form columns I, J, K etc...and the remaining sizes will change.
Example:-
3 drawer
Currently
I = 264.17
J = 264.17
K = 264.17
Gaps: 800-2.5-2.5-2.5 = 712.5

User inputs 150 in column H
I = 150
J = 281.25
K = 281.25
Gaps: 800-2.5-2.5-2.5 = 712.5

User inputs 150 in column H
User inputs 150 in column I
I = 150
J = 150
K = 412.5
Gaps: 800-2.5-2.5-2.5 = 712.5

If the above user entries are placed directly in the 'drawer front' worksheet it all works fine. However, I wanted the change to happen in the entry form worksheet but I'm not sure if it can be done like this. I was planning on the drawer front worksheet to be hidden from user with all calculations.



Book1
ABCDEFGHIJKLMN
52Line NoCabinet TypeCombo Box #HeightDrawer Fronts Height
53(Excludes Kick/Top)Top GapBot GapMid GapsTop Drw02nd Drw03rd Drw04th Drw05th Drw06th Drw
5411 drawer base468002.502.5797.500000
5522 drawer base498002.502.5397.5397.50000
5633 drawer base508002.502.5264.17264.17264.16000
5744 drawer base518002.502.5197.5197.5197.5197.500
Entry Form
Cell Formulas
RangeFormula
F54:F57F54=IF($E54>0,$F$25,"")
G54:G57G54=IF($E54>0,$M$26,"")
H54:H57H54=IF($E54>0,$F$29,"")
I54:I57I54=IFERROR(INDEX('Drawer Fronts'!$H$3:$H$98,MATCH($D54,'Drawer Fronts'!$A$3:$A$98,0)),"")
J54:J57J54=IFERROR(INDEX('Drawer Fronts'!$I$3:$I$98,MATCH($D54,'Drawer Fronts'!$A$3:$A$98,0)),"")
K54:K57K54=IFERROR(INDEX('Drawer Fronts'!$J$3:$J$98,MATCH($D54,'Drawer Fronts'!$A$3:$A$98,0)),"")
L54:L57L54=IFERROR(INDEX('Drawer Fronts'!$K$3:$K$98,MATCH($D54,'Drawer Fronts'!$A$3:$A$98,0)),"")
M54:M57M54=IFERROR(INDEX('Drawer Fronts'!$L$3:$L$98,MATCH($D54,'Drawer Fronts'!$A$3:$A$98,0)),"")
N54:N57N54=IFERROR(INDEX('Drawer Fronts'!$M$3:$M$98,MATCH($D54,'Drawer Fronts'!$A$3:$A$98,0)),"")


Book1
ABCDEFGHIJKLM
1BASE DRAWER BANKSHEIGHTDoors / Drawer GapsDrawer Fronts Height
2Top GapBot GapMid GapsTop Drw02nd Drw03rd Drw04th Drw05th Drw06th Drw
346 1 Drawer Base8002.502.5797.5
449 2 Drawer Base8002.502.5397.5397.5
550 3 Drawer Base8002.502.5264.17264.17264.16
651 4 Drawer Base8002.502.5197.5197.5197.5197.5
Drawer Fronts
Cell Formulas
RangeFormula
C3:C6C3=IFERROR(INDEX('Entry Form1'!$E$54:$E$83,MATCH($A3,'Entry Form1'!$D$54:$D$83,0)),0)
D3:D6D3='Entry Form1'!$M$25
E3:E6E3='Entry Form1'!$M$26
F3:F6F3='Entry Form1'!$M$29
H3H3=IF(C3>0,C3-D3-E3,0)
H4H4=ROUND(IF($C4>0,($C4-$D4-$E4-$F4)/2,0),2)
I4I4=ROUND(IF(C4>0,($C4-$D4-$E4-$F4-$H4),0),2)
H5H5=ROUND(IF($C5>0,($C5-$D5-$E5-($F5*2))/3,0),2)
I5I5=ROUND(IF($C5>0,($C5-$D5-$E5-($F5*2)-$H5)/2,0),2)
J5J5=ROUND(IF($C5>0,($C5-$D5-$E5-($F5*2)-$H5-$I5),0),2)
A3A3=Products!A49
A4:A6A4=Products!A52
H6H6=ROUND(IF($C6>0,($C6-$D6-$E6-($F6*3))/4,0),2)
I6I6=ROUND(IF($C6>0,($C6-$D6-$E6-($F6*3)-$H6)/3,0),2)
J6J6=ROUND(IF($C6>0,($C6-$D6-$E6-($F6*3)-$H6-$I6)/2,0),2)
K6K6=ROUND(IF($C6>0,($C6-$D6-$E6-($F6*3)-$H6-$I6-$J6),0),2)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
OK, I’ll try another way.
Is there a way to - allow input into a formula cell while retaining formula and this input is used in the formula?
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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