+ Reply to Thread
Results 1 to 5 of 5

search through the whole workbook for a value that falls in a range, with category

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    canada ontario
    MS-Off Ver
    Excel 2007
    Posts
    6

    search through the whole workbook for a value that falls in a range, with category

    Hey guys:

    So I'm going to have a workbook where each person has their own sheet. Each sheet will be the same, just the data will differ.

    I need to be able to search the workbook for a number that will fall in the range of a specific category.

    The categories are 1, 2 and 3. Each person has a first and last number, with a scope. Let's say the number I want to find in the workbook is: 54567 under category 2. Since the sample workbook is very small, it's easy to identify that it is on sheet "person3" and would fall in the bottom portion. If this workbook had thousands of entries like this, it would be very difficult to find.

    Can someone help me write a function/macro/script (whatever it would be) to search for a number in a specific category?

    To clarify: I want to be able to specify a category (for example, category 2), and then specific a number I'm looking for (who would be responsible for that number, for example, # 54567) and have the macro/function/script search through all the sheets of the workbook for that number and tell me who's responsible for it, and if possible, pinpoint that cell.

    Thanks in advance.

    example.xlsx
    Last edited by winbawt; 04-19-2013 at 05:46 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: search through the whole workbook for a value that falls in a range, with a category

    This should do it:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-12-2013
    Location
    canada ontario
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: search through the whole workbook for a value that falls in a range, with a category

    This solved my issue, much appreciated!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: search through the whole workbook for a value that falls in a range, with category

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above and mark this thread as SOLVED. Thanks.

  5. #5
    Registered User
    Join Date
    04-12-2013
    Location
    canada ontario
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: search through the whole workbook for a value that falls in a range, with category

    I had already marked it solved before I replied. Just wanted to show some gratitude.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1