Type of SUM formula ??? in Excel General Questions  
 |  Edit my Profile  |  Help
 
     
  
 
 
 
nastech 7/17/2007 9:47 AM PST
  Question
  Hi, I am trying to find the last entry of a column, in order to add /
subtract from other sums. Is there a way to do this? the work-around using
is:

using a work column: =IF($G5="",$G4,0)
and entering 0 in unused rows, then can use: SUM(H4:H26)-$O$30
can I replace that with something else, and get rid of the work column?
thanks
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Wigi 7/17/2007 10:01 AM PST
  Answer
  Hello

see here:

http://www.mvps.org/dmcritchie/excel/lastcell.htm#formulas

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"nastech" wrote:

> Hi, I am trying to find the last entry of a column, in order to add /
> subtract from other sums. Is there a way to do this? the work-around using
> is:
>
> using a work column: =IF($G5="",$G4,0)
> and entering 0 in unused rows, then can use: SUM(H4:H26)-$O$30
> can I replace that with something else, and get rid of the work column?
> thanks
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Bob Phillips 7/17/2007 10:03 AM PST
  Answer
  =sum(H4:H26)-=LOOKUP(10^10,G:G)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"nastech" <nastech@discussions.microsoft.com> wrote in message
news:CA748492-C52C-471D-A1BD-DF2AA0F0E5A0@microsoft.com...
> Hi, I am trying to find the last entry of a column, in order to add /
> subtract from other sums. Is there a way to do this? the work-around
> using
> is:
>
> using a work column: =IF($G5="",$G4,0)
> and entering 0 in unused rows, then can use: SUM(H4:H26)-$O$30
> can I replace that with something else, and get rid of the work column?
> thanks


 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Bob Phillips 7/17/2007 12:25 PM PST
   
  That should say

=SUM(H4:H26)-LOOKUP(10^10,G:G)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Bob Phillips" <bob.ngs@somewhere.com> wrote in message
news:evPf$PJyHHA.988@TK2MSFTNGP02.phx.gbl...
> =sum(H4:H26)-=LOOKUP(10^10,G:G)
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my
> addy)
>
> "nastech" <nastech@discussions.microsoft.com> wrote in message
> news:CA748492-C52C-471D-A1BD-DF2AA0F0E5A0@microsoft.com...
>> Hi, I am trying to find the last entry of a column, in order to add /
>> subtract from other sums. Is there a way to do this? the work-around
>> using
>> is:
>>
>> using a work column: =IF($G5="",$G4,0)
>> and entering 0 in unused rows, then can use: SUM(H4:H26)-$O$30
>> can I replace that with something else, and get rid of the work column?
>> thanks
>
>


 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
nastech 7/17/2007 12:49 PM PST
   
  thanks, what is result, tried, but did not test, did no quite get last item
in column, suspect a SUM of sorts, else item works: thanks

=LOOKUP(9.99999999999999E+307,$G$4:$G$27)

note: column H is where work cells/column are, attempting to delete to make
less volatile / dependant / space taking



"Bob Phillips" wrote:

> That should say
>
> =SUM(H4:H26)-LOOKUP(10^10,G:G)
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
> "Bob Phillips" <bob.ngs@somewhere.com> wrote in message
> news:evPf$PJyHHA.988@TK2MSFTNGP02.phx.gbl...
> > =sum(H4:H26)-=LOOKUP(10^10,G:G)
> >
> > --
> > HTH
> >
> > Bob
> >
> > (there's no email, no snail mail, but somewhere should be gmail in my
> > addy)
> >
> > "nastech" <nastech@discussions.microsoft.com> wrote in message
> > news:CA748492-C52C-471D-A1BD-DF2AA0F0E5A0@microsoft.com...
> >> Hi, I am trying to find the last entry of a column, in order to add /
> >> subtract from other sums. Is there a way to do this? the work-around
> >> using
> >> is:
> >>
> >> using a work column: =IF($G5="",$G4,0)
> >> and entering 0 in unused rows, then can use: SUM(H4:H26)-$O$30
> >> can I replace that with something else, and get rid of the work column?
> >> thanks
> >
> >
>
>
>
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
  Return to Microsoft Communities  Notify me of replies