+ Reply to Thread
Results 1 to 6 of 6

take every nth value from column

  1. #1
    Registered User
    Join Date
    11-21-2017
    Location
    Cornwall
    MS-Off Ver
    7
    Posts
    11

    take every nth value from column

    I want to take the value from cell AV1031 and put into another cell eg C3

    then cell AV1056 into D3, and AV1081 into E3

    and every 25th cell eg AV1106, AV1131

    I know its using the OFFSET function, OFFSET(AV1031,(COLUMN()-1*25,0)

    Would the formula copy across as well ?

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: take every nth value from column

    Attach a sample workbook. 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 data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-21-2017
    Location
    Cornwall
    MS-Off Ver
    7
    Posts
    11

    Re: take every nth value from column

    sheet 1 is a timesheet, at the end of it, AV AW AX AY the hours are broken down into basic hours, bank holiday, holiday and sick.

    I want to take these values into sheet 2 for each employee

    AV4 in sheet 1 would go to E3 in sheet 2

    AV 29 would go to E4

    AV 54 would go to E5

    and every 25th value.

    p.s hope the attachments have attached.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: take every nth value from column

    Looking at the layout for Sheet 2 it would appear that the values should go into cells E3, F3 and G3...
    That being the case one way to do this would be pasting the following formula into E3 and copying across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note: change the 500 in $AV500 so that it will include the desired range for your actual data.
    Note: cells E3:G3 need to be formatted [h]:mm
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    11-21-2017
    Location
    Cornwall
    MS-Off Ver
    7
    Posts
    11

    Re: take every nth value from column

    thanks for that, it does work.
    I did get it working about an hour ago with INDEX rather than OFFSET but the above is a bit tidier.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: take every nth value from column

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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: 7
    Last Post: 08-09-2015, 05:07 PM
  2. Compare multiple columns (column A,column B,Column C) and return value (Column D)
    By john008 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2015, 08:24 AM
  3. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2012, 08:56 AM
  4. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel General
    Replies: 5
    Last Post: 04-06-2012, 12:02 PM
  5. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-06-2012, 11:19 AM
  6. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-06-2012, 11:18 AM
  7. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2012, 11:13 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