+ Reply to Thread
Results 1 to 8 of 8

Need to figure out how to find a number from a previous sheet, from a range.

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    Alberta, Canada
    MS-Off Ver
    2007
    Posts
    6

    Question Need to figure out how to find a number from a previous sheet, from a range.

    Title wasn't long enough to describe what I'm seeking. I'm relatively new to Excel, but learning fast. I am building a spreadsheet that in sheet 2, I need to reference sheet 1, to find a number in a column that fits within a range, and then give me the cell number from the same row but different column. Confusing isn't it. Ok, I'll try to extrapolate...

    A B C D E F
    4 S 13.02 1456.74 1779.46
    5 D 13.015 1469.755 1792.475
    6 4 13.102 1482.857 1805.577

    And so on and so forth, this pattern repeats itself, with the numbers changing ever so slightly for about 500 rows or so. What I'm looking for, as this would be on sheet 1, is a formula or macro for sheet 2, that would find the number 1798.565 as being between row 5 and 6, with the difference shown from either cell. Like, if the function says it's row 6 - 7.012

    or tell me it's row 5 + 6.09. Something like that. I can manipulate the function, formula, or macro to fit my needs but I'm at my wits end trying to get a cell to do this. Maybe have a helper cell on sheet 2? Not sure.

    To further things, once this has been calculated, I need the answer given be able to populate a cell with a drop down answer box that gives a direction. Such as, if the answer is say, row 6 - 7.012, then another cell would read the -7.012 and then populate a cell with a given command of 'Add single' or 'Lay out single' or 'Do nothing'. This would be for a different cell on sheet 2 still, but able to read the answer from the first part, perform a calculation, then give the appropriate answer, if possible... I may be asking a lot here, but any help would be awesome. Thanks in advance...

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Need to figure out how to find a number from a previous sheet, from a range.

    I think you're looking for something like this.
    For the -7.012 case
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For the 6.09 case
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  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
    53,050

    Re: Need to figure out how to find a number from a previous sheet, from a range.

    Hi, welcome to the forum

    Not sure post #2 will give you the location/cell ref.

    I suggest that you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

  4. #4
    Registered User
    Join Date
    06-22-2015
    Location
    Alberta, Canada
    MS-Off Ver
    2007
    Posts
    6

    Re: Need to figure out how to find a number from a previous sheet, from a range.

    Thanks for the welcome I'll see what I can do to upload a clean workbook to illustrate further what I'm attempting to accomplish. Cheers...

  5. #5
    Registered User
    Join Date
    06-22-2015
    Location
    Alberta, Canada
    MS-Off Ver
    2007
    Posts
    6

    Re: Need to figure out how to find a number from a previous sheet, from a range.

    I'll try this one out, see if it works. Cheers m8!

  6. #6
    Registered User
    Join Date
    06-22-2015
    Location
    Alberta, Canada
    MS-Off Ver
    2007
    Posts
    6

    Re: Need to figure out how to find a number from a previous sheet, from a range.

    Hmm. Not sure how to attach a clean workbook to this post...

  7. #7
    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
    53,050

    Re: Need to figure out how to find a number from a previous sheet, from a range.

    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.

  8. #8
    Registered User
    Join Date
    06-22-2015
    Location
    Alberta, Canada
    MS-Off Ver
    2007
    Posts
    6

    Re: Need to figure out how to find a number from a previous sheet, from a range.

    Okay, here's what I'm working with, I don't have anything that shows what I'm looking to have done as if I knew how to get that, I wouldn't have to ask you guys for help lol...
    Attached Files Attached Files

+ 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. [SOLVED] Set values only of range of previous sheet equal to range of original sheet
    By ozizushi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2014, 12:13 PM
  2. Figure out the number of occurences in a time range.
    By staceynix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2013, 09:21 PM
  3. Replies: 16
    Last Post: 05-28-2009, 02:00 PM
  4. find the previous number divisble by 5 before a provided number...
    By all4excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2008, 04:06 PM

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