Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
timotee
 
Posts: n/a
Default Help on SUMIF

working cells A31,B31,B32,B33. If B31A31,then B32 is (A31-B31)*8. If
B31<A31, then B32 is (9999-A31)+B31*8.

I'm tryin to clock a electric meter that rolls around every 9999 units.
After 9999, it starts on 1 again. I have other cells to covert data to money,
but listing that right now would make things too complicated.

My formula for B32 is =IF(B31A31,"SUM(B31-A31)*8","=SUM(9999-A31)+B31*8").

I can't get my orginal thought to pan out. On cell B33, I multiply B32 value
by .01057 to convert to dollars.

If you go from 9999 to 50, the difference is 9940. The real billing units
are 51, because the meter ends at 10000.

Any help greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Gary''s Student
 
Posts: n/a
Default Help on SUMIF

Instead of
(9999-A31)+B31*8
try
((9999-A31)+B31*)8
--
Gary's Student


"timotee" wrote:

working cells A31,B31,B32,B33. If B31A31,then B32 is (A31-B31)*8. If
B31<A31, then B32 is (9999-A31)+B31*8.

I'm tryin to clock a electric meter that rolls around every 9999 units.
After 9999, it starts on 1 again. I have other cells to covert data to money,
but listing that right now would make things too complicated.

My formula for B32 is =IF(B31A31,"SUM(B31-A31)*8","=SUM(9999-A31)+B31*8").

I can't get my orginal thought to pan out. On cell B33, I multiply B32 value
by .01057 to convert to dollars.

If you go from 9999 to 50, the difference is 9940. The real billing units
are 51, because the meter ends at 10000.

Any help greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Roger Govier
 
Posts: n/a
Default Help on SUMIF

Hi

You were almost there. You don't need quotes around your formulae, but
you do need an extra set of brackets.
Try
=IF(B31A31,(B31-A31)*8,((10000-A31)+B31)*8)
I think you need to use 10,000 and not 9999 as I am sure you would get
charged for the unit used from 9999 to 10000.

--
Regards

Roger Govier


"timotee" wrote in message
. ..
working cells A31,B31,B32,B33. If B31A31,then B32 is (A31-B31)*8. If
B31<A31, then B32 is (9999-A31)+B31*8.

I'm tryin to clock a electric meter that rolls around every 9999
units.
After 9999, it starts on 1 again. I have other cells to covert data to
money,
but listing that right now would make things too complicated.

My formula for B32 is
=IF(B31A31,"SUM(B31-A31)*8","=SUM(9999-A31)+B31*8").

I can't get my orginal thought to pan out. On cell B33, I multiply B32
value
by .01057 to convert to dollars.

If you go from 9999 to 50, the difference is 9940. The real billing
units
are 51, because the meter ends at 10000.

Any help greatly appreciated.



  #4   Report Post  
Posted to microsoft.public.excel.newusers
daddylonglegs
 
Posts: n/a
Default Help on SUMIF


I think this would be easier...

=(B31-A31+(A31B31)*10000)*8

If you also want to include your dollars calculation

=(B31-A31+(A31B31)*10000)*8*0.01057


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=506173

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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
SUMIF Not vanjohnson Excel Discussion (Misc queries) 1 March 4th 05 08:42 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


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