+ Reply to Thread
Results 1 to 8 of 8

Formula to Return an information within Range

  1. #1
    Registered User
    Join Date
    07-08-2014
    Location
    Philippines
    MS-Off Ver
    MS office 2010
    Posts
    30

    Formula to Return an information within Range

    Hi guys,

    may i ask for your help what better formula can i make to solve this. my main objective is to - the cell highlighted in yellow should return the details from the "BOOK" column. If the serial number fall equal to "Start" or "End" or if it falls under between the range between the "Start" and "End",it should reflect the "Book" details.

    Ex. if Serial# is 100002 , Book Column (highlighted in "yellow") should get "A" because it is between range of 100001 and 100100

    sample.PNGsample.PNGsample.PNG

  2. #2
    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,938

    Re: Formula to Return an information within Range

    maybe =if(A2<C6,A6,A7)

    A2=10002
    C6=100100
    A6=A
    A7=B

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    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,938

    Re: Formula to Return an information within Range

    deleted dupiicate post

  4. #4
    Registered User
    Join Date
    07-08-2014
    Location
    Philippines
    MS-Off Ver
    MS office 2010
    Posts
    30

    Re: Formula to Return an information within Range

    Thank you FDibbins. i appreciate if you can look with my attached file "sample 2". Thank you so much in advance.
    Attached Files Attached Files

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Formula to Return an information within Range

    Try this..
    Simple lookup used...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down..
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  6. #6
    Registered User
    Join Date
    07-08-2014
    Location
    Philippines
    MS-Off Ver
    MS office 2010
    Posts
    30

    Re: Formula to Return an information within Range

    Thanks Vikas. however that doesn't completely fix the prob. we should also include the "End" column. in your example if ever i have a serial number greater than the serial number at the end of a book batch, for example if i have 100301 serial number your example still return the "C" instead of N/A. we should take consideration of the Range, thanks for the effort tho, still looking for the correct formula. Sorry guys, im a noob in excel.

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Formula to Return an information within Range

    Here is revised formula...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    check the attached file..
    Attached Files Attached Files

  8. #8
    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,938

    Re: Formula to Return an information within Range

    If you can swap your table around a little...
    H
    I
    J
    1
    START
    END
    BOOK
    2
    100001
    100100
    A
    3
    100101
    100200
    B
    4
    100201
    100300
    C
    5
    300001
    300100
    D
    6
    200001
    200100
    E
    7
    900001
    900100
    F
    8


    Then you can use the basic vlookup() for what you want...
    B2=VLOOKUP(A2,$H$2:$J$7,3,1)
    copied down

+ 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: 1
    Last Post: 09-04-2013, 07:23 AM
  2. PLEASE HELP!!!! Formula to return a value within a range
    By kevinscomp in forum Excel General
    Replies: 11
    Last Post: 01-05-2012, 01:48 AM
  3. Formula to return every third observation in a range
    By andrewc in forum Excel General
    Replies: 5
    Last Post: 12-08-2011, 06:47 AM
  4. if and mid formula to return a range
    By srollins13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2010, 12:49 AM
  5. Formula to return cell shading information
    By Rob_WA in forum Excel General
    Replies: 3
    Last Post: 09-04-2006, 02:08 AM

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