Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Return last cell that contains a particular value

The scenario:
I have a spreadsheet to track my stocks. Each stock has its own worksheet
with the stock symbol as the worksheet name (ie IBM). I also have a
worksheet that summarizes all the individual sheets. On the individual stock
sheets there is a column (B) for the transaction type (buy sell dividend
split etc) and a column (C) for the amount.
Now for my problem:
I want to be able to list on the summary sheet the last amount received for
each transaction type for each stock. I have tried various LOOKUP functions
and the OFFSET function, but I always just come up with the last value in the
column, not the last value for a particular transaction type.

I am new to the forum so any and all help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Return last cell that contains a particular value

Hi!

Try this:

Transaction type in column B, amount to return in column C:

=LOOKUP(2,1/(B1:B20="buy"),C1:C20)

Biff

"K.L. Smith" wrote in message
...
The scenario:
I have a spreadsheet to track my stocks. Each stock has its own worksheet
with the stock symbol as the worksheet name (ie IBM). I also have a
worksheet that summarizes all the individual sheets. On the individual
stock
sheets there is a column (B) for the transaction type (buy sell dividend
split etc) and a column (C) for the amount.
Now for my problem:
I want to be able to list on the summary sheet the last amount received
for
each transaction type for each stock. I have tried various LOOKUP
functions
and the OFFSET function, but I always just come up with the last value in
the
column, not the last value for a particular transaction type.

I am new to the forum so any and all help would be appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,090
Default Return last cell that contains a particular value

K.L.
Maybe there is a formula solution to your problem but I don't know what
it is. I would use VBA and simply search the column for transaction type
with the search going from the bottom up. This would always find the last
entry for that transaction type. Post back if you think this might work for
you. Include more detail about the layout of your data in both the summary
sheet and the stock sheets. HTH Otto
"K.L. Smith" wrote in message
...
The scenario:
I have a spreadsheet to track my stocks. Each stock has its own worksheet
with the stock symbol as the worksheet name (ie IBM). I also have a
worksheet that summarizes all the individual sheets. On the individual
stock
sheets there is a column (B) for the transaction type (buy sell dividend
split etc) and a column (C) for the amount.
Now for my problem:
I want to be able to list on the summary sheet the last amount received
for
each transaction type for each stock. I have tried various LOOKUP
functions
and the OFFSET function, but I always just come up with the last value in
the
column, not the last value for a particular transaction type.

I am new to the forum so any and all help would be appreciated.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Return last cell that contains a particular value

Otto

I'm very weak in VBA and would like to see your solution so I can learn
something.
Instead of trying to give you all of the details here, could I email you my
spread sheet ? If that would be violating the forum's etiquette, I'll
include necessary details in a later post.

Thanks

"Otto Moehrbach" wrote:

K.L.
Maybe there is a formula solution to your problem but I don't know what
it is. I would use VBA and simply search the column for transaction type
with the search going from the bottom up. This would always find the last
entry for that transaction type. Post back if you think this might work for
you. Include more detail about the layout of your data in both the summary
sheet and the stock sheets. HTH Otto
"K.L. Smith" wrote in message
...
The scenario:
I have a spreadsheet to track my stocks. Each stock has its own worksheet
with the stock symbol as the worksheet name (ie IBM). I also have a
worksheet that summarizes all the individual sheets. On the individual
stock
sheets there is a column (B) for the transaction type (buy sell dividend
split etc) and a column (C) for the amount.
Now for my problem:
I want to be able to list on the summary sheet the last amount received
for
each transaction type for each stock. I have tried various LOOKUP
functions
and the OFFSET function, but I always just come up with the last value in
the
column, not the last value for a particular transaction type.

I am new to the forum so any and all help would be appreciated.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,090
Default Return last cell that contains a particular value

K.L.
The VBA solution would fill in all the information you want in the
Summary sheet for all the stocks and for all the transaction types for each
stock, all in one swack. Yes, send me your file. Include as much
explanation as you can. Remember that you are the only one that knows what
you want and knows your file. My email address is .
Remove the "nop" from this address. HTH Otto
"K.L. Smith" wrote in message
...
Otto

I'm very weak in VBA and would like to see your solution so I can learn
something.
Instead of trying to give you all of the details here, could I email you
my
spread sheet ? If that would be violating the forum's etiquette, I'll
include necessary details in a later post.

Thanks

"Otto Moehrbach" wrote:

K.L.
Maybe there is a formula solution to your problem but I don't know
what
it is. I would use VBA and simply search the column for transaction type
with the search going from the bottom up. This would always find the
last
entry for that transaction type. Post back if you think this might work
for
you. Include more detail about the layout of your data in both the
summary
sheet and the stock sheets. HTH Otto
"K.L. Smith" wrote in message
...
The scenario:
I have a spreadsheet to track my stocks. Each stock has its own
worksheet
with the stock symbol as the worksheet name (ie IBM). I also have a
worksheet that summarizes all the individual sheets. On the individual
stock
sheets there is a column (B) for the transaction type (buy sell
dividend
split etc) and a column (C) for the amount.
Now for my problem:
I want to be able to list on the summary sheet the last amount received
for
each transaction type for each stock. I have tried various LOOKUP
functions
and the OFFSET function, but I always just come up with the last value
in
the
column, not the last value for a particular transaction type.

I am new to the forum so any and all help would be appreciated.








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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Return value in cell above the reference Jean Excel Discussion (Misc queries) 4 May 31st 06 07:50 PM
help with index to return particular cell value Allan from Melbourne Excel Discussion (Misc queries) 0 May 27th 06 03:20 AM
How do you make cell 2 return data if cell 1 contains text? jermsalerms Excel Discussion (Misc queries) 3 January 5th 06 10:44 PM
Select cell, Copy it, Paste it, Return to Previous cell spydor Excel Discussion (Misc queries) 1 December 30th 05 01:29 PM


All times are GMT +1. The time now is 07:52 AM.

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"