PC Review


Reply
Thread Tools Rate Thread

Find first previous cell with data

 
 
=?Utf-8?B?TmFuY3kgTmV3YnVyZ2Vy?=
Guest
Posts: n/a
 
      10th Aug 2006
Hi, I am not "fluent" in Excel, so please make any answers "dummy" level.

I have a running balance column that spans multiple pages and I am trying to
get the last balance from the previous page onto a cell in the following page.

Additionally, there are column headings at the beginning of each page and I
have all cells (except column heading cells) in this balance column
conditionally formatted to not display duplicate balances, so there are cells
that appear blank but technically are not.

I read a post in General Questions dated 1/16/2006 by Derby Jim and answered
by Bob Phillips that sounded like my situation. I tried both solutions that
Bob presented and neither worked. I set up test worksheet as exampled in the
post, used both formulas and both returned 0.

Any help would be much appreciated.


 
Reply With Quote
 
 
 
 
Mark
Guest
Posts: n/a
 
      10th Aug 2006

Here is a formula that may be more or less what you need

=INDIRECT("A"&COUNTA(A1:A100))

This formula will cause the cell that contains it to display the
contents of the last cell in column A that isnt blank. For the
example, I only had it count from A1 to A100, but you may change that
to whatever number you wish. This will only work for you if there are
NO BLANK CELLS within the range being counted before the last non blank
cell.

Your actual formula may look more like this:
=INDIRECT("A"&COUNTA(Sheet3!A1:A10))
due to the fact that you are traversing different worksheets. If you
have any questions, gimme a shout.

 
Reply With Quote
 
=?Utf-8?B?TmFuY3kgTmV3YnVyZ2Vy?=
Guest
Posts: n/a
 
      10th Aug 2006
Mark,
Thank you for responding to my post. I tried the formula you suggested, it
did not work. I got a NAME error.

As my running balance column is I, I typed in the formula as follows:
=INDIRECT("I"&COUNTI(A4:A10000)). I started with A4 as that is where my data
starts-2 rows of column headers and a blank row before the first line of
data. I typed in the formula in row 3 of page 3-2 rows of column headers
precede the formula. As far I know I do not have any blanks.

Hopefully you can shed some light.

Thanks, Nancy

"Mark" wrote:

>
> Here is a formula that may be more or less what you need
>
> =INDIRECT("A"&COUNTA(A1:A100))
>
> This formula will cause the cell that contains it to display the
> contents of the last cell in column A that isnt blank. For the
> example, I only had it count from A1 to A100, but you may change that
> to whatever number you wish. This will only work for you if there are
> NO BLANK CELLS within the range being counted before the last non blank
> cell.
>
> Your actual formula may look more like this:
> =INDIRECT("A"&COUNTA(Sheet3!A1:A10))
> due to the fact that you are traversing different worksheets. If you
> have any questions, gimme a shout.
>
>

 
Reply With Quote
 
Mark
Guest
Posts: n/a
 
      10th Aug 2006

Your are close but just off

=INDIRECT("I"&COUNTI(A4:A10000)) needs to be:
=INDIRECT("I"&COUNTA(A4:A10000)).

I can see why you did that but you are using the COUNTA function.
Should work now...

 
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
How to fill cell with data from a previous cell Ishi Elpitiya Microsoft Excel Worksheet Functions 2 19th Oct 2009 11:14 PM
Find previous active cell Otto Moehrbach Microsoft Excel Programming 1 18th Jun 2008 09:46 PM
need to make cell blank if no data in previous cell Franky Microsoft Excel Programming 1 6th Oct 2007 06:22 AM
Find cell address of previous active cell Google Excel Microsoft Excel Programming 3 21st Nov 2006 01:14 AM
Find last/previous non-blank cell in current column NickDanger Microsoft Excel Worksheet Functions 4 17th May 2004 12:08 AM


Features
 

Advertising
 

Newsgroups
 


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