Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Help on Formula for a cell

Date Stock In/Out Balance Stock Remaining
20 120 Stock OK
20 140 Stock OK
30 170 Stock OK
-50 120 Stock OK
-60 60 Stock OK

I have the above set out in a worksheet, What I need is a formula to put in
a cell for the following: I need a cell e.g A10 to recognise the last entry
in column stock remaining. e.g the cell would return Stock OK or Order stock,
It need to be the last entry in the column and it must update when later
entries are entered into the Stock Remaining.

Can anyone help ????

Regards.


Santaviga

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default Help on Formula for a cell

With
your posted data structure beginning in cell A1
Col_A contains Date
Col_B contains Stock In/Out
Col_C contains Balance
Col_D contains Stock Remaining

This returns the last status of Col_D corresponding to the last Stock In/Out
entry:
E1: =INDEX(D:D,MATCH(10^99,B:B))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"santaviga" wrote:

Date Stock In/Out Balance Stock Remaining
20 120 Stock OK
20 140 Stock OK
30 170 Stock OK
-50 120 Stock OK
-60 60 Stock OK

I have the above set out in a worksheet, What I need is a formula to put in
a cell for the following: I need a cell e.g A10 to recognise the last entry
in column stock remaining. e.g the cell would return Stock OK or Order stock,
It need to be the last entry in the column and it must update when later
entries are entered into the Stock Remaining.

Can anyone help ????

Regards.


Santaviga

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Help on Formula for a cell

Hi Ron,

This formula will not enter it is coming up as text, It needs to return the
last data in the column.

Column D has a formula in it to return Data if C falls below 50 it will
report ORDER STOCK, if C is greater than 50 it will return Data Stock OK, I
need to show the last data in D whether Stock OK or ORDER STOCK to show in
one cell at the top of the spreadsheet.

Your help is greatfully appreciated.

Regards,


Mark

"Ron Coderre" wrote:

With
your posted data structure beginning in cell A1
Col_A contains Date
Col_B contains Stock In/Out
Col_C contains Balance
Col_D contains Stock Remaining

This returns the last status of Col_D corresponding to the last Stock In/Out
entry:
E1: =INDEX(D:D,MATCH(10^99,B:B))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"santaviga" wrote:

Date Stock In/Out Balance Stock Remaining
20 120 Stock OK
20 140 Stock OK
30 170 Stock OK
-50 120 Stock OK
-60 60 Stock OK

I have the above set out in a worksheet, What I need is a formula to put in
a cell for the following: I need a cell e.g A10 to recognise the last entry
in column stock remaining. e.g the cell would return Stock OK or Order stock,
It need to be the last entry in the column and it must update when later
entries are entered into the Stock Remaining.

Can anyone help ????

Regards.


Santaviga

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Help on Formula for a cell

Hi Ron,

Sorry this does work was entering wrong formula, Thanx a great deal, much
appreciated.

Regards


Mark

"Ron Coderre" wrote:

With
your posted data structure beginning in cell A1
Col_A contains Date
Col_B contains Stock In/Out
Col_C contains Balance
Col_D contains Stock Remaining

This returns the last status of Col_D corresponding to the last Stock In/Out
entry:
E1: =INDEX(D:D,MATCH(10^99,B:B))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"santaviga" wrote:

Date Stock In/Out Balance Stock Remaining
20 120 Stock OK
20 140 Stock OK
30 170 Stock OK
-50 120 Stock OK
-60 60 Stock OK

I have the above set out in a worksheet, What I need is a formula to put in
a cell for the following: I need a cell e.g A10 to recognise the last entry
in column stock remaining. e.g the cell would return Stock OK or Order stock,
It need to be the last entry in the column and it must update when later
entries are entered into the Stock Remaining.

Can anyone help ????

Regards.


Santaviga

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Help on Formula for a cell

Assume the colume is C. Then the cell monitoring the last cell in colume C
would be

=offset(C1,counta(C:C)-1,0)

Assume you don't have anything down below the data you are showing to us.

"santaviga" wrote:

Date Stock In/Out Balance Stock Remaining
20 120 Stock OK
20 140 Stock OK
30 170 Stock OK
-50 120 Stock OK
-60 60 Stock OK

I have the above set out in a worksheet, What I need is a formula to put in
a cell for the following: I need a cell e.g A10 to recognise the last entry
in column stock remaining. e.g the cell would return Stock OK or Order stock,
It need to be the last entry in the column and it must update when later
entries are entered into the Stock Remaining.

Can anyone help ????

Regards.


Santaviga



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make a blank cell in a formula cell with a range of cell Vi Excel Discussion (Misc queries) 5 June 21st 07 02:46 PM
get the value of a formula in cell B1 into cell A1 without changing my current cell selection News[_4_] Excel Programming 3 October 21st 06 12:24 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 06:36 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Excel Programming 1 July 8th 03 03:03 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"