Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default EXCEL 2003-Need seperate totals for - & + #'s in a cell range

The spreadsheet has one row for keeping track of personal hrs accurred, hr
used and hrs worked. The hrs used are indicated with a - (-2.0). I need
a seperate total for the hrs used and hrs worked.

Ex: Row 2,C2 thru E2 have the following entries:

B2 = 20.75 (Beg Accural Bal)
C2 = 2.0 (worked)
D2 = -5.5 (used)
E2 = 3.75 (worked)

G2 - should equal hrs used
H2 - Should equal hrs worked
I2 - ending accural bal.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default EXCEL 2003-Need seperate totals for - & + #'s in a cell range

Sydnee,

Try Sumif(C2:F2,"0",C2:F2)

Of course "F" can represent any number of columns (e.g. ZZ)

Cheers,

APL


"Sydnee" wrote in message
...
The spreadsheet has one row for keeping track of personal hrs accurred, hr
used and hrs worked. The hrs used are indicated with a - (-2.0). I
need
a seperate total for the hrs used and hrs worked.

Ex: Row 2,C2 thru E2 have the following entries:

B2 = 20.75 (Beg Accural Bal)
C2 = 2.0 (worked)
D2 = -5.5 (used)
E2 = 3.75 (worked)

G2 - should equal hrs used
H2 - Should equal hrs worked
I2 - ending accural bal.

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default EXCEL 2003-Need seperate totals for - & + #'s in a cell range

G2 =Abs(Sumif(C2:E2,"<0"))
H2 = Sumif(C2:E2,"0")
I2 = Sum(B2:E2)

--
Regards,
Tom Ogilvy

"Sydnee" wrote in message
...
The spreadsheet has one row for keeping track of personal hrs accurred, hr
used and hrs worked. The hrs used are indicated with a - (-2.0). I

need
a seperate total for the hrs used and hrs worked.

Ex: Row 2,C2 thru E2 have the following entries:

B2 = 20.75 (Beg Accural Bal)
C2 = 2.0 (worked)
D2 = -5.5 (used)
E2 = 3.75 (worked)

G2 - should equal hrs used
H2 - Should equal hrs worked
I2 - ending accural bal.

Thanks




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
add two cells from seperate work sheets into a cell on seperate wo lar Excel Worksheet Functions 6 April 27th 10 06:54 PM
Select the first cell of the last row in a range - Excel 2003 Gary''s Student New Users to Excel 0 April 2nd 09 12:56 AM
Stacked bar chart with totals - Excel 2003 EAB1977 Charts and Charting in Excel 2 February 13th 09 12:42 PM
Totals from Seperate Worksheets to One Consolidated Sheet RudeRam Excel Discussion (Misc queries) 6 May 25th 06 03:07 AM
Adding Totals on Seperate Page misselainei Excel Discussion (Misc queries) 3 April 26th 06 12:07 AM


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