|
|
how do i work i pints and gallons
i would like to have a column that works in pints and gallons that will add
up at the bottom.
so if i put in 1.4 (1 being a gallon & .4 being pints) + 2.7 (2 being a
gallon & .7 being pints) the answer i need would be 4.3
as there are 8 pints in a gallon
Using Excel 2007
|
|
0
|
|
|
|
Reply
|
Utf
|
1/31/2010 10:25:01 AM |
|
=INT(SUM(INT(A1:A10))+SUM(MOD(A1:A10,1)*10/8))+MOD(SUM(INT(A1:A10))+SUM(MOD(A1:A10,1)*10/8),1)*8/10
as an array formula (Control Shift Enter)
--
David Biddulph
Rowing web pages at
http://www.biddulph.org.uk/
boss steve wrote:
> i would like to have a column that works in pints and gallons that
> will add up at the bottom.
> so if i put in 1.4 (1 being a gallon & .4 being pints) + 2.7 (2 being
> a gallon & .7 being pints) the answer i need would be 4.3
> as there are 8 pints in a gallon
>
> Using Excel 2007
|
|
0
|
|
|
|
Reply
|
David
|
1/31/2010 10:58:19 AM
|
|
Hi,
I may have made hard work of this and someone may come up with something
simpler but in the meantime try this ARRAY formula. There musn't be any blank
cells in the range and see below on how to enter an array formula
=SUM(INT(A1:A10))+MOD(SUM(MOD(A1:A10,INT(A1:A10)))*10,8)/10+INT(SUM(MOD(A1:A10,INT(A1:A10)))*10/8)
This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.
--
Mike
When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
"boss steve" wrote:
> i would like to have a column that works in pints and gallons that will add
> up at the bottom.
> so if i put in 1.4 (1 being a gallon & .4 being pints) + 2.7 (2 being a
> gallon & .7 being pints) the answer i need would be 4.3
> as there are 8 pints in a gallon
>
> Using Excel 2007
|
|
0
|
|
|
|
Reply
|
Utf
|
1/31/2010 11:00:01 AM
|
|
That seems to give a #DIV/0! error if there are any empty cells (or cells
where the number of gallons is zero) in the range.
--
David Biddulph
Mike H wrote:
> Hi,
>
> I may have made hard work of this and someone may come up with
> something simpler but in the meantime try this ARRAY formula. There
> musn't be any blank cells in the range and see below on how to enter
> an array formula
>
> =SUM(INT(A1:A10))+MOD(SUM(MOD(A1:A10,INT(A1:A10)))*10,8)/10+INT(SUM(MOD(A1:A10,INT(A1:A10)))*10/8)
>
> This is an array formula which must be entered by pressing
> CTRL+Shift+Enter 'and not just Enter. If you do it correctly then
> Excel will put curly brackets 'around the formula {}. You can't type
> these yourself. If you edit the formula 'you must enter it again with
> CTRL+Shift+Enter.
>
>
>> i would like to have a column that works in pints and gallons that
>> will add up at the bottom.
>> so if i put in 1.4 (1 being a gallon & .4 being pints) + 2.7 (2
>> being a gallon & .7 being pints) the answer i need would be 4.3
>> as there are 8 pints in a gallon
>>
>> Using Excel 2007
|
|
0
|
|
|
|
Reply
|
David
|
1/31/2010 11:39:35 AM
|
|
David,
I knew about the Div/0 for blank cells and mentioned it in my response but
never tested it with (say) 0.n values. Thanks for pointing that out.
I was just looking at your formula to understand how you avoided div/0 for
blank cells and see it now.
Your solutions is much better than mine :(
--
Mike
When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
"David Biddulph" wrote:
> That seems to give a #DIV/0! error if there are any empty cells (or cells
> where the number of gallons is zero) in the range.
> --
> David Biddulph
>
>
> Mike H wrote:
> > Hi,
> >
> > I may have made hard work of this and someone may come up with
> > something simpler but in the meantime try this ARRAY formula. There
> > musn't be any blank cells in the range and see below on how to enter
> > an array formula
> >
> > =SUM(INT(A1:A10))+MOD(SUM(MOD(A1:A10,INT(A1:A10)))*10,8)/10+INT(SUM(MOD(A1:A10,INT(A1:A10)))*10/8)
> >
> > This is an array formula which must be entered by pressing
> > CTRL+Shift+Enter 'and not just Enter. If you do it correctly then
> > Excel will put curly brackets 'around the formula {}. You can't type
> > these yourself. If you edit the formula 'you must enter it again with
> > CTRL+Shift+Enter.
> >
> >
> >> i would like to have a column that works in pints and gallons that
> >> will add up at the bottom.
> >> so if i put in 1.4 (1 being a gallon & .4 being pints) + 2.7 (2
> >> being a gallon & .7 being pints) the answer i need would be 4.3
> >> as there are 8 pints in a gallon
> >>
> >> Using Excel 2007
>
>
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
1/31/2010 12:51:01 PM
|
|
Somewhat late, but I spend time thinking about this when I should have been
otherwise occupied in church this morning
=SUM(INT(A1:A10))+INT(SUM(MOD(A1:A10,1))*10/8)+MOD(SUM(MOD(A1:A10,1)),0.8)
Enter as array formula (CTRL+SHIFT+ENTER)
Just a bit shorter than David's
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
"boss steve" <boss steve@discussions.microsoft.com> wrote in message
news:300DC1D6-7727-4E28-858D-6B24BB3A9941@microsoft.com...
> i would like to have a column that works in pints and gallons that will
> add
> up at the bottom.
> so if i put in 1.4 (1 being a gallon & .4 being pints) + 2.7 (2 being a
> gallon & .7 being pints) the answer i need would be 4.3
> as there are 8 pints in a gallon
>
> Using Excel 2007
|
|
0
|
|
|
|
Reply
|
Bernard
|
1/31/2010 5:54:11 PM
|
|
|
5 Replies
292 Views
(page loaded in 0.085 seconds)
Similiar Articles: how do i work i pints and gallons - microsoft.public.excel.misc ...i would like to have a column that works in pints and gallons that will add up at the bottom. so if i put in 1.4 (1 being a gallon & .4 being pints... Excel formula needed to round up a value to a whole number ...how do i work i pints and gallons - microsoft.public.excel.misc ... Excel formula needed to round up a value to a whole number ... I want my formula to round the 1.5 ... Why does one have to click on the cmd button twice - microsoft ...how do i work i pints and gallons - microsoft.public.excel.misc ... Why does one have to click on the cmd button twice - microsoft ... 30").TextFrame.TextRange.Text ... Multiple row comparison to sum potentially multiple values ...What I ultimately am trying to do is see how many gallons are flowing each day for a number of years. I have a ... This appears to work: A B ... how to do a bulk submit? - microsoft.public.access.formscoding ...... under Available Picks and a document status. Pint out ... InfoPath Q&A: How do I submit a repeating table of data ... The cost for registering a work online is $35 as of May ... I want to extend the formula to the WHOLE column. Help please ...... to extend my formula for the whole column, but dragging down doesn't work. (instead I ... Excel formula needed to round up a value to a whole number ... = 1.5 gallons). KB979683 driving me crazy - microsoft.public.windowsupdate ...how do i work i pints and gallons - microsoft.public.excel.misc ... KB979683 driving me crazy - microsoft.public.windowsupdate ... how do i work i pints and gallons ... Test for Whole Number - microsoft.public.word.vba.general ...Sub Test() Dim pInt As Integer Dim pStr As String Do pStr = InputBox("Enter a whole number ... I have done a small test and I think your idea >>will work for ... DSum between dates - microsoft.public.access.formscoding ...I am trying to work with values between certain dates, and want to know if there is some ... Tank]", "AutosGasCtatsCRV", strCriteria) dblGallons = DSUM("[Gallons ... Capturing Initial Price of Equipment - microsoft.public.project ...... equipment isn't used up in a project the way a bucket of paint or a gallon ... is my first post (and I'm a bit stressed about this, and it is > 1:30) so please try and work ... how do i work i pints and gallons - microsoft.public.excel.misc ...i would like to have a column that works in pints and gallons that will add up at the bottom. so if i put in 1.4 (1 being a gallon & .4 being pints... Gallons to Pints Conversion - How many pints in a gallon ?1 Gallon [Dry, US] = 8 Pints [Dry, US] 1 Gallon [UK] = 8 Pints [UK] Gallon is an imperial and us ... Energy/Work; FlowRate; Force; Frequency; Fuel Economy; Heat; Length; Light; Magnetic; Power How to Convert Gallons, Quarts, Pints and Cups | eHow.comUnlike most of the world, which relies on the metric system, the United States uses a non-uniform system for measuring and dispensing most liquids. A holdover from ... How to Convert Gallons into Pints, Liters and Quarts | eHow.comConverting gallons into pints, liters and quarts requires you to know something about both the metric system and the U.S. customary system of measurements. You will ... How do you convert half pints into gallons? - Yahoo! AnswersBest Answer: divide by 16 ... If you have a Ti 83 or greater you can go to the APPS and then SCITOOLS and there is a conversion calculator there ... there ... 7/10/2012 12:26:18 PM
|
|
|
|
|
|
|
|
|