+ Reply to Thread
Results 1 to 11 of 11

Find value in column with header and output variable in same row, different column

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Find value in column with header and output variable in same row, different column

    Hi,

    I'm new to Vba and wondering if someone could help with the following problem.

    I have data which outputs into a spreadsheet with an event time code located at the top. I would like the find this value (in this instance 1.864) in the "time" column and set this as a variable/event(?) so i could then find the value located in the "BallOrigin:Z" column at this time/event and output it to a separate worksheet.

    Any help is much appreciated.

    ball test.xls

  2. #2
    Registered User
    Join Date
    11-14-2010
    Location
    Macau
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Find value in column with header and output variable in same row, different column

    In this kind of case, you don't need macro and use vlookup function is can handle.
    Please see attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find value in column with header and output variable in same row, different column

    Thanks, the reason I wanted to use a macro is because I will have 800+ spreadsheets plus many more variables so was looking
    for an example which i could use and adapt for multiple tasks to automate my data process

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find value in column with header and output variable in same row, different column

    Your request is not clear to me.
    I found 1.864 in column B row 938, so what is the next step? What do you want to do once that match is found?

  5. #5
    Registered User
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find value in column with header and output variable in same row, different column

    Once the match is found, i would like to select the value in the column named "BallOrigin"Z that is in the same row as the number just found (row 938) and output the value from "BallOrigin:Z row 38 to a blank cell.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find value in column with header and output variable in same row, different column

    Return to blank cells, column F. Is this right?

  7. #7
    Registered User
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find value in column with header and output variable in same row, different column

    That's right

  8. #8
    Registered User
    Join Date
    11-14-2010
    Location
    Macau
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Find value in column with header and output variable in same row, different column

    If to use macro , please advice what is yours' criteria?

  9. #9
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find value in column with header and output variable in same row, different column

    Try the attached.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find value in column with header and output variable in same row, different column

    Lotuexel - what do you mean by criteria? Sorry new to this all!

  11. #11
    Registered User
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find value in column with header and output variable in same row, different column

    Perfect, Thanks!

+ 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: 2
    Last Post: 04-26-2013, 01:16 PM
  2. Lookup OR Find value of Colum F in Column G and Provide output in Column H
    By Pankaj05 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2013, 07:37 AM
  3. Lookup/Find value of Colum F in Column G and Provide output in Column H
    By Pankaj05 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2013, 07:36 AM
  4. [SOLVED] How to find Column with a header that has a variable that changes evry week
    By JMG14 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-08-2012, 08:20 AM
  5. Search for column header and find all values and their row numbers in that column
    By woody83 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-14-2012, 03:11 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