+ Reply to Thread
Results 1 to 9 of 9

Searching for a number within a range

  1. #1
    Registered User
    Join Date
    07-03-2014
    Location
    Boston, MA
    MS-Off Ver
    2010
    Posts
    4

    Searching for a number within a range

    I have 1000 line items. Each cell has between 5-50 items formatted as general (EMDL0100015945, EMDL0100015946, EMDL0100015947). How can I search for an item in the range? If using greater then, less than, is this possible if not dealing with numbers? (Example below)

    EMDL0100015949, EMDL0100015155, EMDL0100015156, EMDL0100015159, EMDL0100015160, EMDL0100015164, EMDL0100015150, EMDL0100015084, EMDL0100015025, EMDL0100015013, EMDL0100015229, EMDL0100015230, EMDL0100015231, EMDL0100015232, EMDL0100015234, EMDL0100015238, EMDL0100015242, EMDL0100015284

    EMDL0100016693, EMDL0100016561, EMDL0100016541, EMDL0100016542, EMDL0100016543, EMDL0100016544, EMDL0100016454, EMDL0100016546, EMDL0100016548, v16549, EMDL0100016550, EMDL0100016551, EMDL0100016552, EMDL0100016536, EMDL0100016511, EMDL0100016512, EMDL0100016477, EMDL0100016481, EMDL0100016483,EMDL0100016484, EMDL0100016403, EMDL0100016103, EMDL0100016039, EMDL0100016040, EMDL0100016026, EMDL0100016027, EMDL0100016028, EMDL0100016029, EMDL0100016030, EMDL0100016031, EMDL0100016032

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Searching for a number within a range

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-03-2014
    Location
    Boston, MA
    MS-Off Ver
    2010
    Posts
    4

    Re: Searching for a number within a range

    I have attached a jpg of the worksheet with explanation of desired result
    Attached Images Attached Images

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Searching for a number within a range

    An actual workbook would be a lot more useful in trying to find a solution for you. A picture doesn't allow any experimentation with the data.

    This looks like a lot of different values in each cell. You could use the Find and Select to locate the value and if it shows up in more than one cell click in the window of results and use Ctrl + A to select all the entries, close the dialogue and while the cells are still selected click on the Fill Colour in the Font Group of the Home Tab and select a colour that will stand out. All selected cells will take on that colour.
    Last edited by newdoverman; 09-19-2014 at 11:37 AM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Searching for a number within a range

    Agree with Ron on not uploading pics. See if =SEARCH() will work for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    07-03-2014
    Location
    Boston, MA
    MS-Off Ver
    2010
    Posts
    4

    Re: Searching for a number within a range

    Does this help. So the dilemma is that the number/item I may be looking for may not be in the range in the cell, so I am looking for the closest match, e.g., looking for 1234 but not in the range so 1236 is the closest match. Does this make sense?
    Attached Files Attached Files

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Searching for a number within a range

    Please give range references on which the search needs to be done and where is your search text in your file and what is your expected result and where?

  8. #8
    Registered User
    Join Date
    07-03-2014
    Location
    Boston, MA
    MS-Off Ver
    2010
    Posts
    4

    Re: Searching for a number within a range

    The range is all cells in column K. Whan searching for a number/item in the column, the expected result would be a match OR the number/item falls within the range of the cell.
    So, if searching for EMDL01000340

    it would highlight this cell: K4
    EMDl0100000249, EMDl0100000250, EMDl0100000264, EMDl0100000292, EMDl0100000293, EMDl0100000294, EMDl0100000295, EMDl0100000296, EMDl0100000297, EMDl0100000312, EMDl0100000327, EMDl0100000328, EMDl0100000329, EMDl0100000330, EMDl0100000331, EMDl0100000350, EMDl0100000351, EMDl0100000352, EMDl0100000355, EMDl0100000379, EMDl0100000380, EMDl0100000407

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Searching for a number within a range

    Enter in the first available blank column this formula and copy down. The starting number of the string will be returned if the searched string is found in the cell in column K. Replace "searchterm" with the value you are looking for. Include the "" as you are looking for text values.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 09-01-2014, 07:59 AM
  2. Searching a range and returning row number
    By rocketup in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2012, 11:47 AM
  3. Replies: 3
    Last Post: 03-04-2011, 02:25 PM
  4. [SOLVED] Searching a Range for a number over 40
    By annem in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2006, 12:10 PM
  5. Need help with searching a row for a number!
    By KrazyKevin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-03-2005, 02:20 PM

Tags for this Thread

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