Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

excel maths

0 views
Skip to first unread message

Cyclops

unread,
Jan 4, 2010, 11:49:02 AM1/4/10
to
I have to create a vehicle service record and I wish to have the service
interval of 6000 miles automatically added to the current milage.I wish to do
this horizontally eg.

a b c d e
1 14 6014
2 6020 12020

a = milage at service
e = next service due

Is there a way to write a formula for any number entered in the a column
that adds 6000 and places it in e.Many thanks to anybody who can assist

David Biddulph

unread,
Jan 4, 2010, 11:59:04 AM1/4/10
to
=A1+6000
--
David Biddulph

"Cyclops" <Cyc...@discussions.microsoft.com> wrote in message
news:71679B90-6977-4F8E...@microsoft.com...

Pokey

unread,
Jan 4, 2010, 11:58:01 AM1/4/10
to
Here is a simple formula that will do that for you:
=IF(AND(A2>1),A2+6000)

David Biddulph

unread,
Jan 4, 2010, 12:07:33 PM1/4/10
to
What does the AND function do in that formula?
--
David Biddulph

"Pokey" <Po...@discussions.microsoft.com> wrote in message
news:4AC9359F-E8CB-4D7D...@microsoft.com...

Bill Sharpe

unread,
Jan 4, 2010, 3:12:15 PM1/4/10
to

To answer David's question, it puts FALSE in column E when column A is
empty. If you copy the formula down in column E you'll get FALSE entered
until you enter numbers>1 in column A. If you copy down =A2+6000 you'll
see 6000 entered in column E when column A is blank.

I'd suggest =IF(A2="","",A2+6000) entered in E2, which will leave column
E blank unless a value is entered in column A when the formula is copied
down.

Bill

David Biddulph

unread,
Jan 4, 2010, 4:03:44 PM1/4/10
to
It's not the AND function that gives the FALSE result, Bill; it's the
absence of an argument as the alternative result.
The AND function does nothing, as far as I can see.
=IF(AND(A2>1),A2+6000) does the same as =IF(A2>1,A2+6000)
--
David Biddulph

"Bill Sharpe" <wfsn...@adelphia.net> wrote in message
news:uAaiyoXj...@TK2MSFTNGP06.phx.gbl...

Cyclops

unread,
Jan 5, 2010, 10:39:01 AM1/5/10
to
Many Thanks Bill.Works just how I require it.

"David Biddulph" wrote:

> .
>

Bill Sharpe

unread,
Jan 5, 2010, 1:07:25 PM1/5/10
to
David Biddulph wrote:
> It's not the AND function that gives the FALSE result, Bill; it's the
> absence of an argument as the alternative result.
> The AND function does nothing, as far as I can see.
> =IF(AND(A2>1),A2+6000) does the same as =IF(A2>1,A2+6000)
> --
> David Biddulph
My only exercise appears to be jumping to conclusions. You're right, the
IF function requires two choices.

Bill

0 new messages