#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default Formula Question

We only charge for a meal tray served if the number is over three per month;
if they only get three, no charge, if they get four, we charge for one, five,
we charge for two and so on.

Is there a formula that will provide the following:

If the sum of the preceeding three cells (totalling the number of breakfast,
lunch and dinner trays) is = or < 3, I need it to return 0; however, if the
number is greater than 3, I need it to return the actual number minus 3.

Any help?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default Formula Question

Thanks Don, but that isn't what I need. That only counts the number of cells
that meet the criteria, I need a formula to produce the values.

Wanda

"Don Guillett" wrote:

Look in the help index for COUNTIF

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Wanda" wrote in message
...
We only charge for a meal tray served if the number is over three per
month;
if they only get three, no charge, if they get four, we charge for one,
five,
we charge for two and so on.

Is there a formula that will provide the following:

If the sum of the preceeding three cells (totalling the number of
breakfast,
lunch and dinner trays) is = or < 3, I need it to return 0; however, if
the
number is greater than 3, I need it to return the actual number minus 3.

Any help?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Formula Question

You mention the "preceeding 3 cells".

Say A1, B1, and C1 contain the numbers in question.
In D1, try this:

=MAX(SUM(A1:C1)-3,0)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Wanda" wrote in message
...
Thanks Don, but that isn't what I need. That only counts the number of
cells
that meet the criteria, I need a formula to produce the values.

Wanda

"Don Guillett" wrote:

Look in the help index for COUNTIF

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Wanda" wrote in message
...
We only charge for a meal tray served if the number is over three per
month;
if they only get three, no charge, if they get four, we charge for one,
five,
we charge for two and so on.

Is there a formula that will provide the following:

If the sum of the preceeding three cells (totalling the number of
breakfast,
lunch and dinner trays) is = or < 3, I need it to return 0; however, if
the
number is greater than 3, I need it to return the actual number minus
3.

Any help?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default Formula Question

Perfect! Thank you!


"RagDyer" wrote:

You mention the "preceeding 3 cells".

Say A1, B1, and C1 contain the numbers in question.
In D1, try this:

=MAX(SUM(A1:C1)-3,0)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Wanda" wrote in message
...
Thanks Don, but that isn't what I need. That only counts the number of
cells
that meet the criteria, I need a formula to produce the values.

Wanda

"Don Guillett" wrote:

Look in the help index for COUNTIF

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Wanda" wrote in message
...
We only charge for a meal tray served if the number is over three per
month;
if they only get three, no charge, if they get four, we charge for one,
five,
we charge for two and so on.

Is there a formula that will provide the following:

If the sum of the preceeding three cells (totalling the number of
breakfast,
lunch and dinner trays) is = or < 3, I need it to return 0; however, if
the
number is greater than 3, I need it to return the actual number minus
3.

Any help?





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Formula Question

Appreciate the feed-back.
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"Wanda" wrote in message
...
Perfect! Thank you!


"RagDyer" wrote:

You mention the "preceeding 3 cells".

Say A1, B1, and C1 contain the numbers in question.
In D1, try this:

=MAX(SUM(A1:C1)-3,0)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Wanda" wrote in message
...
Thanks Don, but that isn't what I need. That only counts the number of
cells
that meet the criteria, I need a formula to produce the values.

Wanda

"Don Guillett" wrote:

Look in the help index for COUNTIF

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Wanda" wrote in message
...
We only charge for a meal tray served if the number is over three per
month;
if they only get three, no charge, if they get four, we charge for
one,
five,
we charge for two and so on.

Is there a formula that will provide the following:

If the sum of the preceeding three cells (totalling the number of
breakfast,
lunch and dinner trays) is = or < 3, I need it to return 0; however,
if
the
number is greater than 3, I need it to return the actual number minus
3.

Any help?







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
formula question Michelle Excel Discussion (Misc queries) 3 May 25th 07 08:02 PM
Formula question pie_terro Excel Worksheet Functions 4 June 26th 06 06:51 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
formula question Fiona Excel Discussion (Misc queries) 3 September 29th 05 02:31 PM
formula question G Excel Discussion (Misc queries) 6 September 28th 05 10:17 PM


All times are GMT +1. The time now is 06:10 PM.

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"