+ Reply to Thread
Results 1 to 14 of 14

Offset

  1. #1
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Offset

    Im having trouble offseting the below

    =SMALL($D$6:$E$80,ROW()-5)

    Im looking to make it jump 3 coloums to the left.

    Its just not working though.

    This is how i wrote it

    =offset(SMALL($D$6:$E$80,ROW()-5)),0,-3)

    Any ideas whats wrong?

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Offset

    offset has only 2 params: offset(row,col)

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Offset

    You can only offset a range reference, not a value (which will be the result of the SMALL function).

    What exactly is the purpose of the SMALL function in there? Are you attempting to offset the cell address which contains the smallest value in that range?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Offset

    Hi thanks for your reply, who would that look in the above formula?

  5. #5
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Offset

    yep thats what im trying to achieve.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Offset

    I think you need to:

    a) Clarify to whom you're replying in each of your posts (if it's not clear)
    b) Attach an actual workbook with some examples and your desired results clearly outlined

    Regards

  7. #7
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Offset

    Sorry about that, it was aimed at yourself XOR LX.

    I have attached the sheet.

    I hope that helps.
    Attached Files Attached Files

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Offset

    Thanks.

    So what exactly are you trying to return, and in which cells?

    Regards

  9. #9
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Offset

    Ahh i put the wrong version!!

    Looking at the formula in H6 then offset that to where the cell come from.

    So in G6 it would bring back 15518 which is from cell B40.

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Offset

    I notice that your SMALL is looking at both columns C and D - are you saying that it can come from either?

    So that sometimes you'll be offsetting 1 column to the left (if it's in column C) and sometimes 2 (if it's in column D)?

    Should it not just be one or the other, i.e. either column C or column D, but not both? Can you clarify?

    Regards

  11. #11
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Offset

    I see what your saying, if it can be just from column C for now that would be great!

  12. #12
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Offset

    In G6 and copy down:

    =INDEX($B$6:$B$80,MATCH(SMALL($C$6:$C$80,ROWS($1:1)),$C$6:$C$80,0))

    Regards

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

    Re: Offset

    I'm having trouble with your example matching it with your description. I understand that you want to find the lowest value in the range D6:E80 and return the value that is 3 columns to the left of that lowest value.

    This formula will do that. Array enter (Ctrl + Shift + Enter) where you want the answer:

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


    If you are only wanting the value 2 columns over from the smallest value in the range D6:E80 then change the -3 to -2.

    If you are only interested in the small value in column D, change the range D6:E80 to D6:D80
    <---------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

  14. #14
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Offset

    Thanks guys, been a great help!

+ 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: 3
    Last Post: 06-01-2014, 10:26 AM
  2. [SOLVED] SpeedUp/Alternative to Offset.Value = Offset.Value
    By Jovica in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2013, 01:43 AM
  3. function similar to offset to offset the offset
    By Jerseynjphillypa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2012, 03:07 PM
  4. Reformatting - insert formula with offset, then offset to next cell
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2011, 05:41 AM
  5. Replies: 7
    Last Post: 11-04-2008, 06:41 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