Quantcast
Viewing all articles
Browse latest Browse all 217177

Has One Value but only between two set numbers

Hi everyone,

 

I have a table of data (called sheet1) which contains a location defined as a number between 0 and 700.00 and goes up in 0.1 increments. 

 

I then have another table which has these same locations but for only a smaller amount, example - from 10.2 through to 100.9. This comes from a machine that does readings.

 

There are a number of other columns I use to create my formula which is called "Average TQI". This provides the average TQI for each 0.1 location. However the issue I have is sometimes the machine doing the measurements will miss a couple 0.1 increments, for example it will have 30.1, 30.2, and then misses 30.3, and goes to 30.4. I have used the HASONEVALUE formula as follows to give me a zero where there is a missed increment:

 

Average TQI = IF(HASONEVALUE(Sheet1[Custom location]),DIVIDE([TQI sum],[TQI count rows]),0)

 

This works, however it gives me a 0 value for the entire range from 0 to 700 becasue I am using the sheet1 table which has all values.

 

My question to you is can I get the above formula to work to only show from the start of the measurement to the end of the measurement? I was think if I use max and min but cant seem to figure out how to get the formula to work.

 

Here is a snapshot of the data:

 

Image may be NSFW.
Clik here to view.
TQI1.PNG


 

The column named track section contains the location, there are anywhere between 3 and 6 different track sections which will all have their own min and max location start and end points.

 

Thanks,

 

Giles

 


Viewing all articles
Browse latest Browse all 217177

Trending Articles