Hi there,
I am still working on a workbook to calculate test cost at different times, something that is very often used in the pharmaceutical industry.
I copied a dummy example using XL2bb (below) however I try to explaijn what I want.
I have a column with tests, their difficulty, what department is performing this test, a surcharge, the hourly rate for the department, then setup hours and replicate hours.
For the # of setups column I have a formula that calculates the # of setups needed based on the product of columns J --> M.
The calculation works beautifully for T0 (column N) but I need to manually adjust it from T1 (column O) and beyond.
The number of samples for T1 and beyond comes from a separate table using a countA function, I have just created a dummy table below in row 11/12 indicating number of samples at each Tx.
My problem is that I need to adjust the number of setups for T1 and beyond manually instead of having it calculate based on the product of columns J -->M times x (value in row 12 for each time)
Is there a way to do that or am I stuck with manual adjustments?
any help for this novice that is trying to make a big contribution and learn new stuff is geratly appreciated
I am still working on a workbook to calculate test cost at different times, something that is very often used in the pharmaceutical industry.
I copied a dummy example using XL2bb (below) however I try to explaijn what I want.
I have a column with tests, their difficulty, what department is performing this test, a surcharge, the hourly rate for the department, then setup hours and replicate hours.
For the # of setups column I have a formula that calculates the # of setups needed based on the product of columns J --> M.
The calculation works beautifully for T0 (column N) but I need to manually adjust it from T1 (column O) and beyond.
The number of samples for T1 and beyond comes from a separate table using a countA function, I have just created a dummy table below in row 11/12 indicating number of samples at each Tx.
My problem is that I need to adjust the number of setups for T1 and beyond manually instead of having it calculate based on the product of columns J -->M times x (value in row 12 for each time)
Is there a way to do that or am I stuck with manual adjustments?
any help for this novice that is trying to make a big contribution and learn new stuff is geratly appreciated
Book1 | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | |||
2 | Test | Difficulty | Group | Surcharge | hourly rate | setup hours | replicate hours | #of setups | Replicates | # of lots/strengths | Orientations | Packaging Configurations | T0 | T1 | t2 | T3 | T4 | T5 | t6 | t7 | t8 | setup hours | replicate hours | |||||||||||||
3 | test 1 | avg | grp1 | 10% | $110 | 1 | 0.5 | 1 | 5 | 1 | 1 | 1 | $385 | surcharge | Group | hr rate | Test | avg | hi | avg | hi | |||||||||||||||
4 | test 2 | hi | grp1 | 0% | $100 | 2 | 1.5 | 1 | 3 | 1 | 1 | 1 | $650 | 0 | grp1 | 100 | test 1 | 1 | 1.5 | 0.5 | 1 | |||||||||||||||
5 | test 3 | avg | grp1 | 20% | $120 | 3 | 1 | 1 | 2 | 1 | 1 | 1 | $600 | 0.1 | grp2 | 150 | test 2 | 1 | 2 | 1 | 1.5 | |||||||||||||||
6 | test 4 | avg | grp2 | 10% | $165 | 3 | 1 | 1 | 3 | 1 | 1 | 1 | $990 | 0.2 | grp3 | 175 | test 3 | 3 | 4 | 1 | 1.5 | |||||||||||||||
7 | test 5 | hi | grp1 | 0% | $100 | 0.75 | 0.75 | 1 | 5 | 1 | 1 | 1 | $450 | 0.3 | test 4 | 3 | 5 | 1 | 2 | |||||||||||||||||
8 | 0.4 | test 5 | 0.5 | 0.75 | 0.5 | 0.75 | ||||||||||||||||||||||||||||||
9 | at t1 I need to calculate the number of total samples to analyze and then adjust the number of setups based on that total. | |||||||||||||||||||||||||||||||||||
10 | that goes for every time after t1 | |||||||||||||||||||||||||||||||||||
11 | stability | T0 | T1 | t2 | T3 | T4 | T5 | t6 | t7 | t8 | t0 I can calculate easily | |||||||||||||||||||||||||
12 | # of samples | 1 | 3 | 3 | 3 | 2 | 2 | 2 | 1 | 1 | ||||||||||||||||||||||||||
13 | ||||||||||||||||||||||||||||||||||||
14 | ||||||||||||||||||||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F3:F7 | F3 | =ROUND(IF(COUNTA($D3:$E3)<2,"",VLOOKUP($D3,group,2,0)*(1+$E3)),0) |
G3:G7 | G3 | =IF($B3="","",INDEX(setup,MATCH($B3,test,0),MATCH($C3,difficulty,0))) |
H3:H7 | H3 | =IF($B3="","",INDEX(replicate,MATCH($B3,test,0),MATCH($C3,difficulty,0))) |
I3:I7 | I3 | =ROUNDUP(PRODUCT($J3:$M3)/10,0) |
N3:N7 | N3 | =ROUND(PRODUCT($F3,SUM(PRODUCT($G3,$I3),PRODUCT($H3,$J3:$M3))),0) |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
difficulty | =Sheet1!$AE$3:$AF$3 | G3:H7 |
group | =Sheet1!$Z$4:$AA$6 | F3:F7 |
rate | =Sheet1!$AA$4:$AA$6 | F3:F7 |
replicate | =Sheet1!$AG$4:$AH$8 | H3:H7 |
setup | =Sheet1!$AE$4:$AF$8 | G3:G7 |
test | =Sheet1!$AD$4:$AD$8 | G3:H7 |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
C3:C7 | List | =difficulty |
D3:D7 | List | =group |
E3:E7 | List | =surcharge |