LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Searching up a column

Thanks for the feed-back.
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"Mike Rogers" <Mike060349@NoxSpamxAOLDOTcom wrote in message
...
Ragdyer

Thanks for the post. I tried Rick's first and it worked well so yours goes
in the hopper for future reference. Thanks for the help!!! It is always
appreciated. (I knew one of those long 9999999 formulas would work, just
did
not know how.)

Mike Rogers

"Ragdyer" wrote:

Maybe someone can come up with something more concise, but this will
subtract the next to last number in A1:A50 from the last number in that
range:

=LOOKUP(99^99,A1:A50)-LOOKUP(99^99,INDIRECT("A1:A"&MATCH(LOOKUP(99^99,A1 :A50
),A1:A50,0)-1))

It doesn't matter if there's text, blanks, nulls, logicals or errors
within
the range.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Mike Rogers" <Mike060349@NoxSpamxAOLDOTcom wrote in message
...
I have a receipt sheet set up where I log every receipt from every store
I
buy anything from. I have a "Comments" column to make note of what item

was
used for. In this "Comments" column, I also log my mileage after I buy

gas.
I can then use the information to determine my gas mileage after each
purchase. I need a formula in Column H to look back up Column G to the

last
number to subtract it from my current mileage. Without a formula here I

have
to look back up the column, find the last number, and enter the formula:
="Miles last time I bought gas"-"Today's mileage". The number of rows
between each mileage entry can very depending on how many other receipts
I
have accumulated. I know that =LOOKUP(9.99999999999999E+307,G:G) will

look
down a column and find the last number, can I use something similar to

look
back up the column?

Mike Rogers





 
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
Searching One Column Only [email protected] Excel Discussion (Misc queries) 2 August 31st 06 12:17 PM
Searching a column and returning a yes or no answer [email protected] Excel Worksheet Functions 1 February 21st 06 08:43 PM
Searching for partial data in a column Severin Excel Discussion (Misc queries) 2 October 3rd 05 06:33 PM
Column searching problem mikeyts New Users to Excel 2 December 18th 04 09:35 PM
Searching a column and copying rows davidshin Excel Worksheet Functions 1 November 10th 04 07:29 PM


All times are GMT +1. The time now is 09:54 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"