+ Reply to Thread
Results 1 to 8 of 8

Drag formula 1 column but have it search a column 12 columns over?

  1. #1
    Registered User
    Join Date
    03-18-2024
    Location
    Philadelphia
    MS-Off Ver
    2308
    Posts
    4

    Drag formula 1 column but have it search a column 12 columns over?

    =MIN(IF(ISNUMBER(SEARCH(A214,$A$1:$A$150)),ROW($A$1:$A$150)))

    This is the formula I am using, but cannot figure out how to incorporate Offset function to search column N instead of A.
    This formula is in A200 but need it so when I drag to B200 it searches N1:N150 and still holds the search text in A214.

    Thank you.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Drag formula 1 column but have it search a column 12 columns over?

    One way: Please try in A200 and copy to B200:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: Drag formula 1 column but have it search a column 12 columns over?

    And if you want to drag it to C200 and increment further... try:

    =MIN(IF(ISNUMBER(SEARCH($A214,INDEX($A$1:$ZZ$150,,1+13*(COLUMNS($A200:A200)-1)))),ROW($A$1:$A$150)))
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    03-18-2024
    Location
    Philadelphia
    MS-Off Ver
    2308
    Posts
    4

    Re: Drag formula 1 column but have it search a column 12 columns over?

    This works for going to B, I should have explained further but basically i have a couple dozen sets of data and i need to know what row a certain word shows up in in each set. the word is always spaced 12 columns apart but there is no consistency of what row they show up in.

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

    Re: Drag formula 1 column but have it search a column 12 columns over?

    See Post 3. However, note that columns A and N are 13 columns apart... Adjust the ZZ to whatever is needed.

    =MIN(IF(ISNUMBER(SEARCH($A214,INDEX($A$1:$ZZ$150,,1+13*(COLUMNS($A200:A200)-1)))),ROW($A$1:$A$150)))

  6. #6
    Registered User
    Join Date
    03-18-2024
    Location
    Philadelphia
    MS-Off Ver
    2308
    Posts
    4

    Re: Drag formula 1 column but have it search a column 12 columns over?

    Quote Originally Posted by Glenn Kennedy View Post
    See Post 3. However, note that columns A and N are 13 columns apart... Adjust the ZZ to whatever is needed.

    =MIN(IF(ISNUMBER(SEARCH($A214,INDEX($A$1:$ZZ$150,,1+13*(COLUMNS($A200:A200)-1)))),ROW($A$1:$A$150)))
    Gotcha this worked amazing, thank you very much

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

    Re: Drag formula 1 column but have it search a column 12 columns over?

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  8. #8
    Registered User
    Join Date
    03-18-2024
    Location
    Philadelphia
    MS-Off Ver
    2308
    Posts
    4

    Re: Drag formula 1 column but have it search a column 12 columns over?

    Quote Originally Posted by Glenn Kennedy View Post
    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.
    Apologies for commenting on a solved post, I was just inquiring about whether there is any way to edit to count the nth instance of what it is searching. So the same exact text in A214 but the second and or third instance of it.

+ 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. add columns, search for column name and add value to column till last row
    By podestron in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2021, 02:05 AM
  2. Drag formula to every other column
    By meganob13 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2018, 12:47 PM
  3. [SOLVED] How to drag/copy an INDEX MATCH along columns and have the column move with it
    By iantix in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2017, 10:36 AM
  4. Replies: 4
    Last Post: 09-26-2012, 12:42 PM
  5. [SOLVED] Identify the last filled row in Column A and then drag formula in Column B till the same
    By bonny24tycoon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2012, 10:50 AM
  6. Replies: 5
    Last Post: 06-10-2010, 09:45 AM
  7. Easy formula to drag down for the whole column
    By xWiZardx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-26-2010, 09:05 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