PC Review


Reply
Thread Tools Rate Thread

Calculating from last inputted cell

 
 
=?Utf-8?B?UGV0ZXJtYWM=?=
Guest
Posts: n/a
 
      31st May 2006
I am trying to write a formula to input the data from the last inputted cell
in a range to another cell. Reading through some earlier threads I found a
formula that works in 2 stages, the first finds the last inputted cell to
return the cell reference, and the 2nd stage reuses the result, the formulas
were

=MAX(ROW($A$1:$A$200)*($A$1:$A$200<>""))

If the above formula was entered into cell B1 the 2nd formula would be
entered in the cell where I wanted the data displayed and would be

=INDEX($A:$A,B1)

The 2 formulas work providing the entered data starts at row 1, my problem
is that the entered data that I want to check is partway down the column, I
have tried amending the formula just to cover the range that I want to check
as below

=MAX(ROW($A$20:$A$29)*($A$20:$A$229<>""))

Which returns the correct row value for the last inputted cell but I can't
get the 2nd formula to use the reference to display the last inputted value.
The 2nd formula that I have used is

=INDEX($A$20$29:$A$29,B1)

This produces a #REF error, I have also tried to use named ranges which
produces the correct cell reference number but still produces the same error.

I would be greatly obliged for any ideas on how I could get it to work.

Thanks

Petermac
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      31st May 2006
Either adjust the first formula to

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Petermac" <(E-Mail Removed)> wrote in message
news:11C60E80-45DE-43C8-8D87-(E-Mail Removed)...
> I am trying to write a formula to input the data from the last inputted

cell
> in a range to another cell. Reading through some earlier threads I found a
> formula that works in 2 stages, the first finds the last inputted cell to
> return the cell reference, and the 2nd stage reuses the result, the

formulas
> were
>
> =MAX(ROW($A$1:$A$200)*($A$1:$A$200<>""))
>
> If the above formula was entered into cell B1 the 2nd formula would be
> entered in the cell where I wanted the data displayed and would be
>
> =INDEX($A:$A,B1)
>
> The 2 formulas work providing the entered data starts at row 1, my

problem
> is that the entered data that I want to check is partway down the column,

I
> have tried amending the formula just to cover the range that I want to

check
> as below
>
> =MAX(ROW($A$20:$A$29)*($A$20:$A$229<>""))
>
> Which returns the correct row value for the last inputted cell but I can't
> get the 2nd formula to use the reference to display the last inputted

value.
> The 2nd formula that I have used is
>
> =INDEX($A$20$29:$A$29,B1)
>
> This produces a #REF error, I have also tried to use named ranges which
> produces the correct cell reference number but still produces the same

error.
>
> I would be greatly obliged for any ideas on how I could get it to work.
>
> Thanks
>
> Petermac



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      31st May 2006
Either adjust the first formula to

=MAX(ROW($A$20:$A$29)*($A$20:$A$29<>""))-MIN(ROW($A$20:$A$29))+1


or just leave the second formula as

=INDEX($A:$A,B1)


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Petermac" <(E-Mail Removed)> wrote in message
news:11C60E80-45DE-43C8-8D87-(E-Mail Removed)...
> I am trying to write a formula to input the data from the last inputted

cell
> in a range to another cell. Reading through some earlier threads I found a
> formula that works in 2 stages, the first finds the last inputted cell to
> return the cell reference, and the 2nd stage reuses the result, the

formulas
> were
>
> =MAX(ROW($A$1:$A$200)*($A$1:$A$200<>""))
>
> If the above formula was entered into cell B1 the 2nd formula would be
> entered in the cell where I wanted the data displayed and would be
>
> =INDEX($A:$A,B1)
>
> The 2 formulas work providing the entered data starts at row 1, my

problem
> is that the entered data that I want to check is partway down the column,

I
> have tried amending the formula just to cover the range that I want to

check
> as below
>
> =MAX(ROW($A$20:$A$29)*($A$20:$A$229<>""))
>
> Which returns the correct row value for the last inputted cell but I can't
> get the 2nd formula to use the reference to display the last inputted

value.
> The 2nd formula that I have used is
>
> =INDEX($A$20$29:$A$29,B1)
>
> This produces a #REF error, I have also tried to use named ranges which
> produces the correct cell reference number but still produces the same

error.
>
> I would be greatly obliged for any ideas on how I could get it to work.
>
> Thanks
>
> Petermac



 
Reply With Quote
 
=?Utf-8?B?UGV0ZXJtYWM=?=
Guest
Posts: n/a
 
      31st May 2006
Bob

Thankyou very much for your help, I was trying to make it more complecated
that it was.

peter

"Bob Phillips" wrote:

> Either adjust the first formula to
>
> =MAX(ROW($A$20:$A$29)*($A$20:$A$29<>""))-MIN(ROW($A$20:$A$29))+1
>
>
> or just leave the second formula as
>
> =INDEX($A:$A,B1)
>
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "Petermac" <(E-Mail Removed)> wrote in message
> news:11C60E80-45DE-43C8-8D87-(E-Mail Removed)...
> > I am trying to write a formula to input the data from the last inputted

> cell
> > in a range to another cell. Reading through some earlier threads I found a
> > formula that works in 2 stages, the first finds the last inputted cell to
> > return the cell reference, and the 2nd stage reuses the result, the

> formulas
> > were
> >
> > =MAX(ROW($A$1:$A$200)*($A$1:$A$200<>""))
> >
> > If the above formula was entered into cell B1 the 2nd formula would be
> > entered in the cell where I wanted the data displayed and would be
> >
> > =INDEX($A:$A,B1)
> >
> > The 2 formulas work providing the entered data starts at row 1, my

> problem
> > is that the entered data that I want to check is partway down the column,

> I
> > have tried amending the formula just to cover the range that I want to

> check
> > as below
> >
> > =MAX(ROW($A$20:$A$29)*($A$20:$A$229<>""))
> >
> > Which returns the correct row value for the last inputted cell but I can't
> > get the 2nd formula to use the reference to display the last inputted

> value.
> > The 2nd formula that I have used is
> >
> > =INDEX($A$20$29:$A$29,B1)
> >
> > This produces a #REF error, I have also tried to use named ranges which
> > produces the correct cell reference number but still produces the same

> error.
> >
> > I would be greatly obliged for any ideas on how I could get it to work.
> >
> > Thanks
> >
> > Petermac

>
>
>

 
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
Calculating a cell nabboo22 Microsoft Excel Programming 1 14th Sep 2008 05:09 AM
Getting Last Value that inputted instereo911 via OfficeKB.com Microsoft Excel Misc 0 25th Apr 2007 07:51 PM
Re: Record date cell is inputted Gord Dibben Microsoft Excel Misc 0 23rd Jan 2007 08:57 PM
I want a macro to save a workbook as a user inputted cell =?Utf-8?B?RUFIUkVOUw==?= Microsoft Excel Misc 3 8th Nov 2005 03:28 PM
calculating from last inputted cell =?Utf-8?B?REFTaGllbGRz?= Microsoft Excel Misc 5 3rd Mar 2005 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:51 AM.