Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Advanced Searching

Hello,
Is there a good way to search from the bottom of a spreadsheet? Also,
is it possible to search for more than one thing in a row? I want to
find a row based on it containing two different values in two different
cells.

Thanks,
Josh

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Advanced Searching

You can search from the bottom up with VBA. For the other question, you can
use Data - Filter - Advanced Filter to find all instances of one row having
the two values you specify. Note that this procedure finds ALL instances,
not the last one or the first from the bottom. HTH Otto
"Josh" wrote in message
oups.com...
Hello,
Is there a good way to search from the bottom of a spreadsheet? Also,
is it possible to search for more than one thing in a row? I want to
find a row based on it containing two different values in two different
cells.

Thanks,
Josh



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Advanced Searching

lastrow = cells(rows.count,1).End(xlup).row
for i = lastrow to 1 step -1
if cells(i,"B") = "House" and cells(i,"M") = "dog" then


end if
Next

--
Regards,
Tom Ogilvy


"Josh" wrote:

Hello,
Is there a good way to search from the bottom of a spreadsheet? Also,
is it possible to search for more than one thing in a row? I want to
find a row based on it containing two different values in two different
cells.

Thanks,
Josh


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
Searching for #N/A [email protected] Excel Worksheet Functions 5 February 28th 07 01:23 PM
Searching, matching then searching another list based on the match A.S. Excel Discussion (Misc queries) 1 December 13th 06 05:08 AM
Advanced Conditional Formatting Ideas Needed! (ok, maybe not that advanced...) shadestreet Excel Discussion (Misc queries) 2 July 21st 06 03:04 PM
searching for tab Kevin R Excel Discussion (Misc queries) 3 January 16th 06 08:55 PM
searching Tracy A Excel Worksheet Functions 2 July 28th 05 08:54 PM


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