If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Now what are those 1st Box and second box. Can you please be more specific regarding textbox names with reference to Row and Column numbers. Or Simple take a screen shot fill/edit it in microsoft paint and share here.

Now what are those 1st Box and second box. Can you please be more specific regarding textbox names with reference to Row and Column numbers. Or Simple take a screen shot fill/edit it in microsoft paint and share here.

Ok. Lets suppose user select 1 from the first drop down. Then he enters/types 8 in # box and 9 in S box. What will be the value in T box?
If user select 2 from dropdown and enters 4 in # box and 5 in S box. What will be the value in T box?

the T box is simply the total calculated from the values that corresponds in the table.

So a users selects dropdown value 1 then enters 8 in #box (this is equal to 1) then user enters 9 in Sbox (this is equal to 4) once this is complete the T box is simply the values added together which in this case is 1+4=5.

Now that we know the total =5 a value is given to this and put in the Output box which would be 2

A user will first select a dropdown with only number 1 or 2 in it which corresponds to the tables above, next a user will input the 1st box with a number between 1-17 then a user will input a number in the second box between 1-17
...
Or if you don't want a user to type anything they could be dropdown boxes also but with options only 1-17

Hold on, I'm really getting confused now. From your most recent table image and from before you said the values the user can enter is based on whether they chose option 1 or 2 from the first column. For the S column, the values can be between 1-17, as you've also said in the quotes. The part I'm confused about is for the # column, where a user can also enter numbers as those tables show values between 0 to 31 for option 1 and 0 to 19 for option 2, not 1-17. Are you referring only to the S column right now or also the # column?

I think with all of this confusion regarding the logic of your tables, it would be really beneficial if you learn JavaScript, so at least you can show a sample of working code and will be a lot more helpful to others trying to understand the logic.

Hi Error404 I understand what you mean, maybe I havent explained it correct or you misunderstood the table.

If user selects either dropdown 1 or 2 the values entered can only be between 1-17

Its the output that differs depending on each dropdown.

So for dropdown one 1-17 can be entered which equals values between 0-31 for the # column and values between 0-15 for the S Column
& for dropdown two 1-17 can be entered which equals values between 0-19 for the # column and values between 0-17 for the S Column

This exactly what I was talking about, it works exactly as required, just one small problem if a user types the value in box 2 as 0 it doesn't show anything in total or output?

How can I fix this

0 & any number grater than 17 is not a part of any of our tables. If value in box1 or box2 is not between 1-17 or no selection in drpdown, the value in total and output will remainn blank that is aesthetically more pleasing than a zero.