Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default What would I set up this formula

I want to get the totals of several cells but not use any negative numbers;
plus I want to round up the currency to the nearest 2nd number would this
work

=If(Sum(F2+F3)0,Roundup,2)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default What would I set up this formula

One way....

Assuming that "round up the currency to the nearest 2nd number" means:

10.333 = 10.33
10.335 = 10.34

=ROUND(SUMIF(F2:F3,"0"),2)

--
Biff
Microsoft Excel MVP


"Karen" wrote in message
...
I want to get the totals of several cells but not use any negative numbers;
plus I want to round up the currency to the nearest 2nd number would this
work

=If(Sum(F2+F3)0,Roundup,2)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default What would I set up this formula

Karen,

Try this:

=ROUND(SUMIF(F2:F3,"0"),2)

The Explanation:

The SUMIF() statement only add those results within the range F2:F3 that are
above 0 (effectively ignoring the minus values.

The ROUND() Statement then rounds the result to the NEAREST 2 decimal places.
You could use ROUNDUP() or ROUNDDOWN() should you so round up or down.

Hopes this helps.
--
GKM mcp2000


"Karen" wrote:

I want to get the totals of several cells but not use any negative numbers;
plus I want to round up the currency to the nearest 2nd number would this
work

=If(Sum(F2+F3)0,Roundup,2)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default What would I set up this formula

Try this formula:
=ROUNDUP(SUMIF(F2:F3,"0"),2)

Hope it helps.
--
John C


"Karen" wrote:

I want to get the totals of several cells but not use any negative numbers;
plus I want to round up the currency to the nearest 2nd number would this
work

=If(Sum(F2+F3)0,Roundup,2)

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default What would I set up this formula

Did you try the formula? What answer did you get?

Firstly, look at the Excel Help for the SUM function. If you want to use
the SUM function to add F2 and F3 then you can use SUM(F2,F3) with the
arguments separated by a comma, but alternatively F2+F3 will add F2 and F3
without needing a SUM around it.

Secondly, look at the Excel help for the ROUNDUP function to see the syntax
of that function.

If you are saying that having added F2 and F3 you want to test the total
against zero, and if the total is positive you want to round up to 2 places
of decimals, then you could use
=If(F2+F30,Roundup(F2+F3,2),"whatever answer you want if F2+F3 is zero or
negative")

If that isn't what you are trying to do, you may wish to refine your
question.
--
David Biddulph

"Karen" wrote in message
...
I want to get the totals of several cells but not use any negative numbers;
plus I want to round up the currency to the nearest 2nd number would this
work

=If(Sum(F2+F3)0,Roundup,2)





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



All times are GMT +1. The time now is 06:13 AM.

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

About Us

"It's about Microsoft Excel"