Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Rounding up with IF

Hello,
With help from the message board......
My formula: =SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="letter")*( D3*F3))
Now I would like the result to round up to 1000 ONLY if less than 1000.
Would like the result to stay what it is if over 1000.
How would I accomplish this???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Rounding up with IF

paulab wrote:
Hello,
With help from the message board......
My formula: =SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="letter")*( D3*F3))
Now I would like the result to round up to 1000 ONLY if less than 1000.
Would like the result to stay what it is if over 1000.
How would I accomplish this???


=MAX(1000,SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="l etter")*(D3*F3)))
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Rounding up with IF

=MAX(1000,SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="l etter")*(D3*F3)))

Regards,
Bernd
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Rounding up with IF

=MAX(SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="letter ")*(D3*F3)),1000)

"paulab" wrote:

Hello,
With help from the message board......
My formula: =SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="letter")*( D3*F3))
Now I would like the result to round up to 1000 ONLY if less than 1000.
Would like the result to stay what it is if over 1000.
How would I accomplish this???

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Rounding up with IF

Go on! Humour us, Paula! Tell us what you want the SUM function to do in
that formula?
You've calculated ((J3="tabloid")*(D3*F3*2)) ; what did you intend the SUM
function to add to that?
And then you've calculated ((J3="letter")*(D3*F3)) ; what did you intend the
SUM function to add to that result?
If you don't understand what the SUM function does, please look it up in
Excel help.
--
David Biddulph

"paulab" wrote in message
...
Hello,
With help from the message board......
My formula: =SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="letter")*( D3*F3))
Now I would like the result to round up to 1000 ONLY if less than 1000.
Would like the result to stay what it is if over 1000.
How would I accomplish this???





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default Rounding up with IF

"paulab" wrote:
With help from the message board......
My formula: =SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="letter")*( D3*F3))


I don't believe SUM serves any useful purpose in this context.


Now I would like the result to round up to 1000 ONLY if less than 1000.
Would like the result to stay what it is if over 1000.
How would I accomplish this?


Ostensibly:

=MAX(1000, (J3="tabloid")*D3*F3*2 + (J3="letter")*D3*F3)

But note:

1. (J3="tabloid")*D3*F3*2 + (J3="letter")*D3*F3 results in zero if J3 is
neither "tabloid" nor "letter". Is that what you want? It's no problem if
J3 can be only "tabloid" or "letter".

2. It might be clearer and more flexible for any future changes if you
wrote:

=MAX(1000, IF(J3="tabloid", D3*F3*2, IF(J3="letter", D3*F3, 0)))

Or J3 can be only "tabloid" or "letter" (i.e. not "tabloid"):

=MAX(1000, IF(J3="tabloid", D3*F3*2, D3*F3))

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Rounding up with IF

Thank you,
All your points are well taken.
If J3 is neither tabloid or letter but left empty, I would like the result
to be 0 not 1000. I have not been able to accomplish this either. Can you
help me again.

"Joe User" wrote:

"paulab" wrote:
With help from the message board......
My formula: =SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="letter")*( D3*F3))


I don't believe SUM serves any useful purpose in this context.


Now I would like the result to round up to 1000 ONLY if less than 1000.
Would like the result to stay what it is if over 1000.
How would I accomplish this?


Ostensibly:

=MAX(1000, (J3="tabloid")*D3*F3*2 + (J3="letter")*D3*F3)

But note:

1. (J3="tabloid")*D3*F3*2 + (J3="letter")*D3*F3 results in zero if J3 is
neither "tabloid" nor "letter". Is that what you want? It's no problem if
J3 can be only "tabloid" or "letter".

2. It might be clearer and more flexible for any future changes if you
wrote:

=MAX(1000, IF(J3="tabloid", D3*F3*2, IF(J3="letter", D3*F3, 0)))

Or J3 can be only "tabloid" or "letter" (i.e. not "tabloid"):

=MAX(1000, IF(J3="tabloid", D3*F3*2, D3*F3))

.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default Rounding up with IF

"paulab" wrote:
If J3 is neither tabloid or letter but left empty, I would like the result
to be 0 not 1000.


There are many ways to write that. One simple way:

=IF(J3="tabloid", MAX(1000,D3*F3*2), IF(J3="letter", MAX(1000,D3*F3), 0))


----- original message -----

"paulab" wrote in message
...
Thank you,
All your points are well taken.
If J3 is neither tabloid or letter but left empty, I would like the result
to be 0 not 1000. I have not been able to accomplish this either. Can you
help me again.

"Joe User" wrote:

"paulab" wrote:
With help from the message board......
My formula: =SUM((J3="tabloid")*(D3*F3*2))+SUM((J3="letter")*( D3*F3))


I don't believe SUM serves any useful purpose in this context.


Now I would like the result to round up to 1000 ONLY if less than 1000.
Would like the result to stay what it is if over 1000.
How would I accomplish this?


Ostensibly:

=MAX(1000, (J3="tabloid")*D3*F3*2 + (J3="letter")*D3*F3)

But note:

1. (J3="tabloid")*D3*F3*2 + (J3="letter")*D3*F3 results in zero if J3 is
neither "tabloid" nor "letter". Is that what you want? It's no problem
if
J3 can be only "tabloid" or "letter".

2. It might be clearer and more flexible for any future changes if you
wrote:

=MAX(1000, IF(J3="tabloid", D3*F3*2, IF(J3="letter", D3*F3, 0)))

Or J3 can be only "tabloid" or "letter" (i.e. not "tabloid"):

=MAX(1000, IF(J3="tabloid", D3*F3*2, D3*F3))


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
ROUNDING FORMULA =ROUND(B12/$B$10,1) ROUNDING TO HIGH SunshineinFt.Myers[_2_] Excel Worksheet Functions 7 March 5th 09 06:41 PM
IF take 2 (ROUNDING) Neil Pearce Excel Discussion (Misc queries) 3 July 20th 07 02:26 PM
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM
Rounding JM Excel Discussion (Misc queries) 5 September 21st 06 03:30 AM
rounding help JM Excel Discussion (Misc queries) 6 September 21st 06 02:17 AM


All times are GMT +1. The time now is 10:25 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"