Forum Discussion
FORMULAS IN EXCEL
- Nov 02, 2021
If you name the lookup table to be 'dataTable' then you can generate indices from the measurement in inches
= INDEX(dataTable, 1 + MOD(inches-1,24), 2 + 3*QUOTIENT(inches-1,24) )If you are fortunate enough to be using Excel 365, it can be tidied up a bit to read
= LET( row, 1 + MOD(inches-1, 24), block, 1 + QUOTIENT(inches-1, 24), INDEX(dataTable, row, 3*block-1) )
If you name the lookup table to be 'dataTable' then you can generate indices from the measurement in inches
= INDEX(dataTable,
1 + MOD(inches-1,24),
2 + 3*QUOTIENT(inches-1,24)
)If you are fortunate enough to be using Excel 365, it can be tidied up a bit to read
= LET(
row, 1 + MOD(inches-1, 24),
block, 1 + QUOTIENT(inches-1, 24),
INDEX(dataTable, row, 3*block-1)
)- MMONUSNov 03, 2021Copper Contributor
I am using microsoft 365 and I converted the info on my sheet 3 to a table and also made it all 1 column instead of 4 columns. So now, my inches of fuel are all in column A and the gallons they convert to are in column B
- PeterBartholomew1Nov 03, 2021Silver ContributorThat would simplify the problem!
- MMONUSNov 03, 2021Copper ContributorWell, it is not working... not surprising considering I am not an excel guru. Thanks for your help though!
- MMONUSNov 03, 2021Copper Contributor
Thank you for your help! Do I need to change the name of sheet 3 to "data table" or do I need to convert the info into a table somehow. I just typed that info in.