validated list returning a formula that adds next row number?

Truman46

New Member
Joined
Oct 8, 2015
Messages
25
Hi excel gurus, Just wondering if someone could help me out please. I want to create a validated list where if someone chooses and option from the list it uses a formula that adds the next row number to the end of the formula.

So for example my list option would be "alarm on and next step". The formula for this is -(1*30+"next step") so in my example below when I choose "Alarm on and next step from the list I want it to put the value of the formula into the Setting column. But it has to add the next steps value so in this case it would be -(1*30+5) because C5 is the next step.

Thanks heaps.

StepTempTimeSettingProgram
C466T4-35"alarm on and next step"
C566T50Pause

<tbody>
</tbody>
 
Here is an example of what it should look like. Its a pid program for a brewery controller. So the figures in the Temp and settings column are what is entered into the pid when you program it. So you go step C1 and enter 55 then next and you enter 5 next to T1 and so on. I want to be able to create a spreadsheet that automatically works out the Alarm on and Alarm off formulas. Although it would be nice to choose from a drop down list and use VLookup to fill in the parameters in Settings for all options there are probably too many options to choose like different temperature settings and even different times. Some beer recipes have different temps and step times etc. I suppose I could create a template using your VLookup example and then manually type in the temp settings and Hold at 72C over 10 mins, but choose from the validated list for alarm on and off etc. Then save the file with a new name so I dont overwrite the original. What do you think?

StepTempTimeSettingNotes
C155T1555C for 5 minutesAlarm 2 on and next step1
C255T27Raise to 62C over 7 minsHold alarm 1 minute1
C362T335Hold at 62C for 35 minsAlarm 2 off and next step5
C462T410Raise to 72C over 10 minsPause
C572T520Hold at 72C for 20 ins
C672T65Raise to 77C over 5 mins
C777T75Hold at 77C for 5 mins
C877T8-39Alarm 2 on and step 9
C977T91Hold alarm 1 min
C1077T10-161Alarm 2 off and step 11
C1177T110Pause
C1277T1255 min sparge at 77C
C1377T13-44Alarm 2 on and step 14
C1477T141alarm 1 min
C1577T150Pause
C1677T16-121

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Thanks heaps for that. I will give it a go and see how it goes. Thanks again, much appreciated.

You're welcome, but it seems either age or other causes, I've been forgetting to add absolute references when needed, please try this instead, same formula, just needed the absolute reference for the table:


Book1
ABCDEFGH
1StepTempTimeSettingProgram
2C466T4-155Alarm 2 off and next stepAlarm on and next step1
3C566T50PauseAlarm 2 on and next step1
4Hold alarm 1 minute
5Alarm 2 off and next step5
6Pause
Sheet62
Cell Formulas
RangeFormula
D2=IF(E2="Hold alarm 1 minute",1,IF(E2="Pause",0,-(VLOOKUP(E2,G$2:H$6,2,0)*30+MID(A3,2,255))))
 
Upvote 0
OK, my last post above was just an edit to my Post #9 , just now read your most recent post, need to think about that in the morning, really late where I am.
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,053
Members
449,206
Latest member
Healthydogs

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