Steve 10:47 AM 08-29-2016
Things are slow around the office today, so I am trying to work up a spreadsheet to help with my daughters archery practice.
Basically, she will be judging distances this year, so I have a spreadsheet with the actual yardage and the yardage she has judged (or guessed). What I want is for the spread sheet to tell me yes if she has judged within 1.5 yards (either direction) of the actual distance I have ranged and no if she is off by more than 1.5 yards either direction.
Can I get there from here?
Thanks in advance,
Steve
[Reply]
pnoon 10:59 AM 08-29-2016
Originally Posted by Steve:
Things are slow around the office today, so I am trying to work up a spreadsheet to help with my daughters archery practice.
Basically, she will be judging distances this year, so I have a spreadsheet with the actual yardage and the yardage she has judged (or guessed). What I want is for the spread sheet to tell me yes if she has judged within 1.5 yards (either direction) of the actual distance I have ranged and no if she is off by more than 1.5 yards either direction.
Can I get there from here?
Thanks in advance,
Steve
Email me a sample or portion of the spreadsheet. I should be able to work something up for you.
pnoon56 at cigarasylum dot com
[Reply]
markem 11:04 AM 08-29-2016
It sounds like you want to know if the difference between 2 cell values is less than some limit. If it is, print "YES" else print "NO".
Is this correct?
[Reply]
pnoon 11:07 AM 08-29-2016
Originally Posted by markem:
It sounds like you want to know if the difference between 2 cell values is less than some limit. If it is, print "YES" else print "NO".
Is this correct?
That's how I see it, too.
I was thinking to color code the NO as red and YES within 1.5 yards as green and within 0.75 yards as dark green.
[Reply]
stearns 11:08 AM 08-29-2016
Happy to help as well, I spend most of most of my days in excel. I think what Mark is eluding to is all you need, something like a =IF(x-y<1.5,YES,NO) where x is the cell with the actual distance and y is the cell with the estimated distance. You can do basic formulas like this in a gsheet if you want to be able to use it on the run through google drive. Let me know if I can be of assistance
:-)
[Reply]
markem 11:09 AM 08-29-2016
Originally Posted by stearns:
Happy to help as well, I spend most of most of my days in excel. I think what Mark is eluding to is all you need, something like a =IF(x-y<1.5,YES,NO) where x is the cell with the actual distance and y is the cell with the estimated distance. You can do basic formulas like this in a gsheet if you want to be able to use it on the run through google drive. Let me know if I can be of assistance :-)
This line works for me:
=IF((ABS(B1-A1)<1.5), "TRUE", "FALSE")
the column information is spreadsheet specific, but you get the idea.
[Reply]
stearns 11:12 AM 08-29-2016
Originally Posted by markem:
This line works for me:
=IF((ABS(B1-A1)<1.5), "TRUE", "FALSE")
the column information is spreadsheet specific, but you get the idea.
Forgot about ABS, that will make things smoother
:-)
[Reply]
pnoon 11:20 AM 08-29-2016
Originally Posted by markem:
This line works for me:
=IF((ABS(B1-A1)<1.5), "TRUE", "FALSE")
the column information is spreadsheet specific, but you get the idea.
I'm only guessing here but I would assum the boundary condition of 1.5 would be a positive result. If so, reversing the sign and results will do the trick
=IF((ABS(B1-A1)>1.5), "FALSE", "TRUE")
The literals could also be changed to PASS/FAIL, YES/NO, etc.
[Reply]
Steve 11:32 AM 08-29-2016
Yes, that's pretty much what I was looking for. For now I am ok with her being within 1.5 yards either direction, but as we go on, I want to be able to adjust that. I have a column set up to indicate if she is + or Minus on the distance.
I was able to get a yes/no if b=a, but couldn't quite figure out how to do in a range.
[Reply]
markem 11:35 AM 08-29-2016
Originally Posted by Steve:
Yes, that's pretty much what I was looking for. For now I am ok with her being within 1.5 yards either direction, but as we go on, I want to be able to adjust that. I have a column set up to indicate if she is + or Minus on the distance.
Here is a good source for more info on if() constructs:
https://exceljet.net/formula/nested-if-function-example
[Reply]
Steve 11:42 AM 08-29-2016
benedic08 11:57 AM 08-29-2016
You can set aside a cell and put in 1.5 in that cell. For example we use cell X1 and have 1.5 in there. You can edit Peter's formula =IF((ABS(B1-A1)>X1), "FALSE", "TRUE"). To make adjustments, you can quickly change X1 to 1 or .5 and all the formulas pointing to it will adjust accordingly.
[Reply]
pnoon 11:58 AM 08-29-2016
Originally Posted by Steve:
Image
:-)
Originally Posted by benedic08:
You can set aside a cell and put in 1.5 in that cell. For example we use cell X1 and have 1.5 in there. You can edit Peter's formula =IF((ABS(B1-A1)>X1), "FALSE", "TRUE"). To make adjustments, you can quickly change X1 to 1 or .5 and all the formulas pointing to it will adjust accordingly.
:-)
[Reply]
Wharf Rat 05:54 PM 08-29-2016
He probably wants to have the formula in multiple rows. So X1 needs to be an absolute address: $X$1
[Reply]
benedic08 07:57 PM 08-29-2016
Originally Posted by Wharf Rat:
He probably wants to have the formula in multiple rows. So X1 needs to be an absolute address: $X$1
Ah yes forgot a tiny but super important detail hahahah
:-)
[Reply]
stearns 07:24 AM 08-30-2016
markem 09:34 AM 08-30-2016
I decided to put some ideas in one post, so this is a duplicate at first.
Here is the formula, based on your example. This example uses a column value for the limit. Note that you can copy this formula to all the subsequent rows of the column and it will automatically use the right cells. This is an Excel thing, not something I did.
Image
I also noticed the "target" column and decided that selecting from a drop down list that you can maintain in a column, or even on another page, would be nice. Use the "data validation" selection on the "data" tab to get to this.
Image
[Reply]
mhailey 09:36 AM 08-30-2016
here is the formula for the average of Yes responses:
=COUNTIF(E2:E5,"Yes")/COUNTA(E2:E5)
[Reply]
Steve 10:51 AM 08-30-2016
Thanks guys! I did make a pull down for the various targets, it just didn't show up on the screenshot.
[Reply]