Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Timmy
 
Posts: n/a
Default I need a formula for a Golf Scorecard

If the value of column B is greater by 2 than the value of column A, Record
as 1 in column C.
  #2   Report Post  
Bill Kuunders
 
Posts: n/a
Default

enter in C2
=IF(B2-A22,1,"")
and copy down

--
Greetings from New Zealand
Bill K
"Timmy" wrote in message
...
If the value of column B is greater by 2 than the value of column A,
Record
as 1 in column C.



  #3   Report Post  
Timmy
 
Posts: n/a
Default

Thanks for your help Bill, Im in NZ too!!!
Unfortunatly your formula did not work. It doesnt show up as invalid but
just turns up a blank(not a zero even) in the C column.....Help!!!

"Bill Kuunders" wrote:

enter in C2
=IF(B2-A22,1,"")
and copy down

--
Greetings from New Zealand
Bill K
"Timmy" wrote in message
...
If the value of column B is greater by 2 than the value of column A,
Record
as 1 in column C.




  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Try
=IF(B2-A2=2,1,"")

to pick up when the difference is actually 2

--
Regards
Roger Govier
"Timmy" wrote in message
...
Thanks for your help Bill, Im in NZ too!!!
Unfortunatly your formula did not work. It doesnt show up as invalid but
just turns up a blank(not a zero even) in the C column.....Help!!!

"Bill Kuunders" wrote:

enter in C2
=IF(B2-A22,1,"")
and copy down

--
Greetings from New Zealand
Bill K
"Timmy" wrote in message
...
If the value of column B is greater by 2 than the value of column A,
Record
as 1 in column C.






  #5   Report Post  
Timmy
 
Posts: n/a
Default

Great!!!!thats it!! Now Can I enter more than one function like this in the
same formula to keep building my total ....something like:

=IF(B2-A2=2,1,"") + (B3-A3=2,1,"") + ........and so on, so my result of 1
would keep tallying 1+1+1+1 = 4

"Roger Govier" wrote:

Try
=IF(B2-A2=2,1,"")

to pick up when the difference is actually 2

--
Regards
Roger Govier
"Timmy" wrote in message
...
Thanks for your help Bill, Im in NZ too!!!
Unfortunatly your formula did not work. It doesnt show up as invalid but
just turns up a blank(not a zero even) in the C column.....Help!!!

"Bill Kuunders" wrote:

enter in C2
=IF(B2-A22,1,"")
and copy down

--
Greetings from New Zealand
Bill K
"Timmy" wrote in message
...
If the value of column B is greater by 2 than the value of column A,
Record
as 1 in column C.








  #6   Report Post  
Bill Kuunders
 
Posts: n/a
Default

Timmy

From your first reply
it looked like you want a 0 result if not =2.
This can be done with =IF(B2-A2=2,1,0)
With copy down I indicated that you can extend the formula down the column.
Use the right hand bottom corner of C2 cell
The mouse pointer changes to a black "+" sign
hold and drag down
You can then add the results in that column.

Regards
Bill K

"Timmy" wrote in message
...
Great!!!!thats it!! Now Can I enter more than one function like this in
the
same formula to keep building my total ....something like:

=IF(B2-A2=2,1,"") + (B3-A3=2,1,"") + ........and so on, so my result of
1
would keep tallying 1+1+1+1 = 4

"Roger Govier" wrote:

Try
=IF(B2-A2=2,1,"")

to pick up when the difference is actually 2

--
Regards
Roger Govier
"Timmy" wrote in message
...
Thanks for your help Bill, Im in NZ too!!!
Unfortunatly your formula did not work. It doesnt show up as invalid
but
just turns up a blank(not a zero even) in the C column.....Help!!!

"Bill Kuunders" wrote:

enter in C2
=IF(B2-A22,1,"")
and copy down

--
Greetings from New Zealand
Bill K
"Timmy" wrote in message
...
If the value of column B is greater by 2 than the value of column A,
Record
as 1 in column C.








  #7   Report Post  
Max
 
Posts: n/a
Default

If I've read you correctly, this might work (in a single cell):

Put in say, C1: =SUMPRODUCT(--(B2:B100-A2:A100=2))

Adapt the range to suit ..

And for a cleaner look when cols A and B are cleared, you could switch off
extraneous zeros display in the sheet via:
Click Tools Options View tab Uncheck "Zero values" ok
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Timmy" wrote in message
...
Great!!!!thats it!! Now Can I enter more than one function like this in

the
same formula to keep building my total ....something like:

=IF(B2-A2=2,1,"") + (B3-A3=2,1,"") + ........and so on, so my result of

1
would keep tallying 1+1+1+1 = 4



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 08:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"