If the value of column B is greater by 2 than the value of column A, Record
as 1 in column C.
If the value of column B is greater by 2 than the value of column A, Record
as 1 in column C.
enter in C2
=IF(B2-A2>2,1,"")
and copy down
--
Greetings from New Zealand
Bill K
"Timmy" <Timmy@discussions.microsoft.com> wrote in message
news:1A8710C9-50BC-4B5D-8197-81EA2D8AC1F8@microsoft.com...
> If the value of column B is greater by 2 than the value of column A,
> Record
> as 1 in column C.
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-A2>2,1,"")
> and copy down
>
> --
> Greetings from New Zealand
> Bill K
> "Timmy" <Timmy@discussions.microsoft.com> wrote in message
> news:1A8710C9-50BC-4B5D-8197-81EA2D8AC1F8@microsoft.com...
> > If the value of column B is greater by 2 than the value of column A,
> > Record
> > as 1 in column C.
>
>
>
Try
=IF(B2-A2>=2,1,"")
to pick up when the difference is actually 2
--
Regards
Roger Govier
"Timmy" <Timmy@discussions.microsoft.com> wrote in message
news:17309FCC-3A8B-4E8C-AE1C-E6CE90B10771@microsoft.com...
> 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-A2>2,1,"")
>> and copy down
>>
>> --
>> Greetings from New Zealand
>> Bill K
>> "Timmy" <Timmy@discussions.microsoft.com> wrote in message
>> news:1A8710C9-50BC-4B5D-8197-81EA2D8AC1F8@microsoft.com...
>> > If the value of column B is greater by 2 than the value of column A,
>> > Record
>> > as 1 in column C.
>>
>>
>>
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" <Timmy@discussions.microsoft.com> wrote in message
> news:17309FCC-3A8B-4E8C-AE1C-E6CE90B10771@microsoft.com...
> > 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-A2>2,1,"")
> >> and copy down
> >>
> >> --
> >> Greetings from New Zealand
> >> Bill K
> >> "Timmy" <Timmy@discussions.microsoft.com> wrote in message
> >> news:1A8710C9-50BC-4B5D-8197-81EA2D8AC1F8@microsoft.com...
> >> > If the value of column B is greater by 2 than the value of column A,
> >> > Record
> >> > as 1 in column C.
> >>
> >>
> >>
>
>
>
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" <Timmy@discussions.microsoft.com> wrote in message
news:86AC9940-DD68-4E28-A342-8EB2B1B77D97@microsoft.com...
> 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" <Timmy@discussions.microsoft.com> wrote in message
>> news:17309FCC-3A8B-4E8C-AE1C-E6CE90B10771@microsoft.com...
>> > 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-A2>2,1,"")
>> >> and copy down
>> >>
>> >> --
>> >> Greetings from New Zealand
>> >> Bill K
>> >> "Timmy" <Timmy@discussions.microsoft.com> wrote in message
>> >> news:1A8710C9-50BC-4B5D-8197-81EA2D8AC1F8@microsoft.com...
>> >> > If the value of column B is greater by 2 than the value of column A,
>> >> > Record
>> >> > as 1 in column C.
>> >>
>> >>
>> >>
>>
>>
>>
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 <at>yahoo<dot>com
----
"Timmy" <Timmy@discussions.microsoft.com> wrote in message
news:86AC9940-DD68-4E28-A342-8EB2B1B77D97@microsoft.com...
> 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
Of course!!!
Thanks Max
Bill K
"Max" <demechanik@yahoo.com> wrote in message
news:ee$$e4fiFHA.3328@TK2MSFTNGP10.phx.gbl...
> 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 <at>yahoo<dot>com
> ----
> "Timmy" <Timmy@discussions.microsoft.com> wrote in message
> news:86AC9940-DD68-4E28-A342-8EB2B1B77D97@microsoft.com...
>> 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
>
>
You're welcome, Bill !
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
"Bill Kuunders" <bill.kuunders@xtra.co.nz> wrote in message
news:O2y6$mmiFHA.320@TK2MSFTNGP09.phx.gbl...
> Of course!!!
>
> Thanks Max
> Bill K
Sorry for the slow response guys....Thanks alot for you help!!! That was it
(Max's formula).Now all I got to do is win!!!
"Max" wrote:
> You're welcome, Bill !
> --
> Rgds
> Max
> xl 97
> ---
> GMT+8, 1° 22' N 103° 45' E
> xdemechanik <at>yahoo<dot>com
> ----
> "Bill Kuunders" <bill.kuunders@xtra.co.nz> wrote in message
> news:O2y6$mmiFHA.320@TK2MSFTNGP09.phx.gbl...
> > Of course!!!
> >
> > Thanks Max
> > Bill K
>
>
>
You're welcome, Timmy !
Thanks for posting back ..
Good luck with your winnings <g> !
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
"Timmy" <Timmy@discussions.microsoft.com> wrote in message
news:95091A12-AC3C-4BEE-B887-C3118E143C26@microsoft.com...
> Sorry for the slow response guys....Thanks alot for you help!!!
> That was it (Max's formula).Now all I got to do is win!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks