+ Reply to Thread
Results 1 to 11 of 11

String together Offset

  1. #1
    Registered User
    Join Date
    12-09-2016
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    10

    String together Offset

    Is there any way I can string together offsets?

    For example, starting at A1, I want to go down 4 (to Ben Johnson), none across, then return 5 down and 10 across
    so that would be
    =offset(A1,4,0,5,10)
    but what if I wanted to return details for rows 14 to 15 and 18 to 21 too? is there some way to string them all together?
    I'm really new to this so excuse my ignorance & many thank!
    Claire

    Data.jpg

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: String together Offset

    Hi,

    How are you planning to use the result?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    12-09-2016
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    10

    Re: String together Offset

    Just to show the same data as an array. Nothing fancy like a sum etc. I'm using it rather the pasting the same data, that way, if anything changes in the original sheet it'll update in the new sheet automatically.
    Hope that makes sense.
    Thanks

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: String together Offset

    I don't know if you can make OFFSET work, but you could use INDEX like this
    =INDEX(A1:J32,{5;6;7;8;9;14;15;18;19;20;21},{1,2,3,4,5,6,7,8,9,10})
    array-entered into the appropriate number of cells.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: String together Offset

    Are you wanting to extract data for (variable) list of Salesmen or is it just one salesman at a time.?

    Please attach a file (not image) so that respondents (a) do not have to type in data and (b) have data with which test any formulas. Ensure the data is representative of your actual "real world" data.

    Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the (remove confidential) data.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  6. #6
    Registered User
    Join Date
    12-09-2016
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    10

    Re: String together Offset

    Thanks xlnitwit, wonderful stuff! That'll would work perfectly for this, although a little long if I've got a hundred columns... can I shorten this somehow? So, if it went from A1 right across to BH for example could I use a 1;200?!?!

  7. #7
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: String together Offset

    Try replacing {1,2,3,4,5,6,7,8,9,10} at the end with COLUMN($A:$BH)

  8. #8
    Registered User
    Join Date
    12-09-2016
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    10

    Re: String together Offset

    Hi, I just tried that, it came back with all the data I wanted except in the first column... there were a few #value errors. Hmph!
    Why would it work for 99% of the cells?!?!
    This is what I used just to test it:
    =INDEX(Installations!A1:J32,{4;6;9},($A:$J))

    Thanks, you have the patience of a saint!
    Appreciated

  9. #9
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: String together Offset

    You missed the COLUMN function
    =INDEX(Installations!A1:J32,{4;6;9},COLUMN($A:$J))

  10. #10
    Registered User
    Join Date
    12-09-2016
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    10

    Re: String together Offset

    Oh dear! It's as simple as that! & it works perfectly! You diamond! thank you very much! :D

  11. #11
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: String together Offset

    You're welcome.

    Please remember to mark the thread Solved.

+ 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. How to Reference a String in a Way Similar to the OFFSET function
    By smithst3 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-25-2016, 04:08 PM
  2. sum offset of a range of cells that contain specific string
    By Jietoh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2016, 09:52 AM
  3. problem with offset to find the nearest string
    By jpbisani in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-26-2014, 12:36 PM
  4. Find certain string and offset the cell in filtered data
    By orangeballoons in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-25-2013, 12:10 AM
  5. Excel search string + offset formula help
    By FrisbeeD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2012, 11:47 AM
  6. Find string and offset copy
    By EnergyEngineer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-28-2007, 05:06 PM
  7. Find string, offset one column, enter string
    By mikellyrice in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2007, 02: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