+ Reply to Thread
Results 1 to 9 of 9

Formula to copy and data found in every fourth column on another sheet

  1. #1
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Formula to copy and data found in every fourth column on another sheet

    Hello Experts,
    On the attached file. I need help to write a formula on the sheet name "Score" that will look for the meat name and the corresponding month on the sheet name "Data" and return the number that is in the TKT Avg column. Note that the TKT Avg column is found at every 4th column Please see example i have done for the month Jan-10. The formula i use cannot copy across to the other months. So the formula i need should be able to copy across to the other months

    Thanks,
    Teddy
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Formula to copy and data found in every fourth column on another sheet

    =LOOKUP(B$4,Data!$B$2:$DT$2,Data!$D4:$DV4)

  3. #3
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to copy and data found in every fourth column on another sheet

    Thanks for replying however when i copy the formula across to the other months, Feb-10 & Mar-10 have the same numbers. Can you have a look back at the formula to see if something was omitted.

  4. #4
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to copy and data found in every fourth column on another sheet

    Tim, I tried your formula but when i copy it across to the other months, it return the same numbers for Feb-10 & Mar-10. Please take a look back at the formula to see if you had omitted something.

    Teddy

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Formula to copy and data found in every fourth column on another sheet

    headley: The problem is that your dates in row data!2:2 LOOK the same as the dates in score!4:4 but in fact are not. That's why the LOOKUP is failing.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula to copy and data found in every fourth column on another sheet

    In B6, copied across and down:

    =INDEX(Data!$D4:$CR4,,1+4*(COLUMNS($A:A)-1))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  7. #7
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to copy and data found in every fourth column on another sheet

    Thanks for your observation. Do you have a formula that i could use to obtain the result i want ?

  8. #8
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Formula to copy and data found in every fourth column on another sheet

    Glen's formula works because it bypasses the date inconsistencies. The other option would be to keep your current LOOKUP formula and make the DATA and SCORE worksheet dates identical.

  9. #9
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to copy and data found in every fourth column on another sheet

    Geof,

    Thanks for your explanation. I will keep the lookup formula but ensure that my dates on both sheets are identical.

    Thanks again.

+ 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] vba to copy numerical data only in first column ,if found copy whole row to another sheet
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2017, 01:34 PM
  2. Loop to go down column and copy every fourth row
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2015, 02:31 PM
  3. VBA to searc column for a value and copy the row(s) to another sheet when found
    By brockj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2014, 03:27 PM
  4. [SOLVED] Copy row from one sheet and paste to another if a key word is found in 1 column of sheet 1
    By killdozer in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-17-2014, 02:27 PM
  5. Replies: 0
    Last Post: 06-14-2013, 01:36 PM
  6. Replies: 16
    Last Post: 01-20-2013, 09:40 AM
  7. Replies: 5
    Last Post: 09-24-2009, 03:46 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