PC Review


Reply
Thread Tools Rate Thread

Calculations using the last available figure in a column

 
 
jonco
Guest
Posts: n/a
 
      15th Feb 2007
I have a spreadsheet with data in colum A rows 5:24
Lets say they're items in a list. sometimes the list has more itmes than
others.
Description Cash IN Cash Out Running Balance

If there is nothing in either the Cash In or Cash Out cells then therre will
be no running balance. for thaqt line. The last balance figure is the
running balance.

In row 25 I have different data that is sometimes there buy not always (But
it's always in row 25). Let's call that Overhead

I want to be able to get the earlier running balance figure (from somwherw
above) and Add the Cash In Figure (B25) or subtract the Cash Out figure
(C25) (if any) and update the Running Balance figure accordingly.

I use this formula to post the running balance figure if there is a plus or
minus:
=IF((B7="")*AND(C7=""),"",D6+B7-C7) -- (Example shows row 7) It displays
as blank if there is no changes to the balance figure above.

If I copy the same formula to row 25...I get a #VALUE! error when I put data
in row 25.

So, how do I get the last available figure in the column and do a
calculation on it in row 25?

Thanks for any suggestions.

Jon



 
Reply With Quote
 
 
 
 
=?Utf-8?B?ZGtpbm4=?=
Guest
Posts: n/a
 
      16th Feb 2007
try the following

=IF((B7="")*AND(C7=""),"",SUM(D6,B7,-C7))

the sum function will ignor the text that was giving you the problem and
still allow you to add and subtract

at least it seems to in my sample

David


"jonco" wrote:

> I have a spreadsheet with data in colum A rows 5:24
> Lets say they're items in a list. sometimes the list has more itmes than
> others.
> Description Cash IN Cash Out Running Balance
>
> If there is nothing in either the Cash In or Cash Out cells then therre will
> be no running balance. for thaqt line. The last balance figure is the
> running balance.
>
> In row 25 I have different data that is sometimes there buy not always (But
> it's always in row 25). Let's call that Overhead
>
> I want to be able to get the earlier running balance figure (from somwherw
> above) and Add the Cash In Figure (B25) or subtract the Cash Out figure
> (C25) (if any) and update the Running Balance figure accordingly.
>
> I use this formula to post the running balance figure if there is a plus or
> minus:
> =IF((B7="")*AND(C7=""),"",D6+B7-C7) -- (Example shows row 7) It displays
> as blank if there is no changes to the balance figure above.
>
> If I copy the same formula to row 25...I get a #VALUE! error when I put data
> in row 25.
>
> So, how do I get the last available figure in the column and do a
> calculation on it in row 25?
>
> Thanks for any suggestions.
>
> Jon
>
>
>
>

 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      16th Feb 2007
Assume D1 has the beginning balance and entries start in row 2.

Enter In
D2:=if(And($B2="",$C2=""),"",$D$1+Sum($B$2:$B2)-Sum($C$2:$C2))

Then fill down.

this would result in:

D7: =if(And($B7="",$C7=""),"",$D$1+Sum($B$2:$B7)-Sum($C$2:$C7))



--
Regards,
Tom Ogilvy


"jonco" <(E-Mail Removed)> wrote in message
news:BS5Bh.76560$(E-Mail Removed)...
>I have a spreadsheet with data in colum A rows 5:24
> Lets say they're items in a list. sometimes the list has more itmes than
> others.
> Description Cash IN Cash Out Running Balance
>
> If there is nothing in either the Cash In or Cash Out cells then therre
> will be no running balance. for thaqt line. The last balance figure is
> the running balance.
>
> In row 25 I have different data that is sometimes there buy not always
> (But it's always in row 25). Let's call that Overhead
>
> I want to be able to get the earlier running balance figure (from somwherw
> above) and Add the Cash In Figure (B25) or subtract the Cash Out figure
> (C25) (if any) and update the Running Balance figure accordingly.
>
> I use this formula to post the running balance figure if there is a plus
> or minus:
> =IF((B7="")*AND(C7=""),"",D6+B7-C7) -- (Example shows row 7) It displays
> as blank if there is no changes to the balance figure above.
>
> If I copy the same formula to row 25...I get a #VALUE! error when I put
> data in row 25.
>
> So, how do I get the last available figure in the column and do a
> calculation on it in row 25?
>
> Thanks for any suggestions.
>
> Jon
>
>
>



 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      16th Feb 2007
True, but how does it accumulate the total if the previous total (D6 for
example) is ""

Just a thought for the OP.

--
Regards,
Tom Ogilvy



"dkinn" <(E-Mail Removed)> wrote in message
news:557FBDF3-3BD3-4CF3-A354-(E-Mail Removed)...
> try the following
>
> =IF((B7="")*AND(C7=""),"",SUM(D6,B7,-C7))
>
> the sum function will ignor the text that was giving you the problem and
> still allow you to add and subtract
>
> at least it seems to in my sample
>
> David
>
>
> "jonco" wrote:
>
>> I have a spreadsheet with data in colum A rows 5:24
>> Lets say they're items in a list. sometimes the list has more itmes than
>> others.
>> Description Cash IN Cash Out Running Balance
>>
>> If there is nothing in either the Cash In or Cash Out cells then therre
>> will
>> be no running balance. for thaqt line. The last balance figure is the
>> running balance.
>>
>> In row 25 I have different data that is sometimes there buy not always
>> (But
>> it's always in row 25). Let's call that Overhead
>>
>> I want to be able to get the earlier running balance figure (from
>> somwherw
>> above) and Add the Cash In Figure (B25) or subtract the Cash Out figure
>> (C25) (if any) and update the Running Balance figure accordingly.
>>
>> I use this formula to post the running balance figure if there is a plus
>> or
>> minus:
>> =IF((B7="")*AND(C7=""),"",D6+B7-C7) -- (Example shows row 7) It
>> displays
>> as blank if there is no changes to the balance figure above.
>>
>> If I copy the same formula to row 25...I get a #VALUE! error when I put
>> data
>> in row 25.
>>
>> So, how do I get the last available figure in the column and do a
>> calculation on it in row 25?
>>
>> Thanks for any suggestions.
>>
>> Jon
>>
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?Sk1C?=
Guest
Posts: n/a
 
      16th Feb 2007
Another suggestion (but not quite as short as Tom's) - you could use this in
your formula in D2 and copy down. It should pull out the last number.

Lookup(max($D$1:$d1)+1,$d$1:$d1)


"jonco" wrote:

> I have a spreadsheet with data in colum A rows 5:24
> Lets say they're items in a list. sometimes the list has more itmes than
> others.
> Description Cash IN Cash Out Running Balance
>
> If there is nothing in either the Cash In or Cash Out cells then therre will
> be no running balance. for thaqt line. The last balance figure is the
> running balance.
>
> In row 25 I have different data that is sometimes there buy not always (But
> it's always in row 25). Let's call that Overhead
>
> I want to be able to get the earlier running balance figure (from somwherw
> above) and Add the Cash In Figure (B25) or subtract the Cash Out figure
> (C25) (if any) and update the Running Balance figure accordingly.
>
> I use this formula to post the running balance figure if there is a plus or
> minus:
> =IF((B7="")*AND(C7=""),"",D6+B7-C7) -- (Example shows row 7) It displays
> as blank if there is no changes to the balance figure above.
>
> If I copy the same formula to row 25...I get a #VALUE! error when I put data
> in row 25.
>
> So, how do I get the last available figure in the column and do a
> calculation on it in row 25?
>
> Thanks for any suggestions.
>
> Jon
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Formula re value in column C or D, calculations made on either in column E? GS Microsoft Excel Programming 1 18th Jul 2011 02:58 PM
Re: Formula re value in column C or D, calculations made on either in column E? GS Microsoft Excel Programming 1 16th Jul 2011 05:19 AM
Re: Formula re value in column C or D, calculations made on either in column E? Jim Cone Microsoft Excel Programming 0 16th Jul 2011 05:00 AM
Can't figure out a certain column sort =?Utf-8?B?QnJlbmRhbg==?= Microsoft Excel Misc 8 31st Oct 2007 02:51 PM
Freezing the data in a column and moving the calculations to the next column Mervyn Thomas Microsoft Excel Programming 1 16th Dec 2004 05:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.