+ Reply to Thread
Results 1 to 7 of 7

How to transfer vertical info from one sheet to horizontal direction (another sheet)?

  1. #1
    Forum Contributor
    Join Date
    01-20-2011
    Location
    liverpool
    MS-Off Ver
    Excel 2016
    Posts
    198

    How to transfer vertical info from one sheet to horizontal direction (another sheet)?

    Hello,
    I have a sheet where in column A I have an employee number and next to it objects wich that employee owns.
    In case one employee owns more than one object his number is repeated in the cell below so in the next cell it is visible the number of the second object.

    I need to transfer objects owned by employee to another sheet where the structute is silghly different-I have one line per employee and if she/he owns more than one object I have extension of the data horizontally.
    So in other words I need to transfer information from vertical layout to horizontal based on employee number.

    What easy solution you can suggest? Bear in mind that my list is long so the formula that does this magic transfer should be just dragged right and down.
    you can find the details in the attached example. Check sheet1 and 2.
    Thank you!Book1.xlsm

  2. #2
    Registered User
    Join Date
    07-23-2014
    Location
    New Orleans, LA
    MS-Off Ver
    2013
    Posts
    5

    Re: How to transfer vertical info from one sheet to horizontal direction (another sheet)?

    I reviewed your file, but did not understand how to meet your needs based on was in the provided example. If you would be so kind as to provide a more specific example (and remove any identifying info), it would be more helpful in trying to help you solve your issue.

  3. #3
    Forum Contributor
    Join Date
    01-20-2011
    Location
    liverpool
    MS-Off Ver
    Excel 2016
    Posts
    198

    Re: How to transfer vertical info from one sheet to horizontal direction (another sheet)?

    Quote Originally Posted by LMunoz View Post
    I reviewed your file, but did not understand how to meet your needs based on was in the provided example. If you would be so kind as to provide a more specific example (and remove any identifying info), it would be more helpful in trying to help you solve your issue.
    I am sorry.I have attached wrong file. That is the new one.new.xlsx

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to transfer vertical info from one sheet to horizontal direction (another sheet)?

    See the green cell and drag across.

    =if(column()>countif(Sheet1!$A$2:$A$14,Sheet2!$A3),"",INDEX(Sheet1!$A$2:$B$14,match(Sheet2!$A3,Sheet1!$A$2:$A$14,0)+column()-1,2))
    Last edited by oeldere; 06-23-2015 at 02:20 PM. Reason: formula added
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Contributor
    Join Date
    01-20-2011
    Location
    liverpool
    MS-Off Ver
    Excel 2016
    Posts
    198

    Re: How to transfer vertical info from one sheet to horizontal direction (another sheet)?

    Oeldere,
    Thanks for the solution. The formula is quite complicated for me. Usually I am trying to understand solution provided. Again thank you.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to transfer vertical info from one sheet to horizontal direction (another sheet)?

    B3 =

    1) column()>countif(Sheet1!$A$2:$A$14,Sheet2!$A3),"",

    this parts compares the result of the column (in this case column B, which is 2)
    and if you drag the formula to the right=> column C, which is 3 => column D, which is 4.

    with the count of elements that meets the criteria in the countif formula, which is 4.

    If it is less than 4, it puts the result in the cell, otherwise it makes the cell blanc.


    2) INDEX(Sheet1!$A$2:$B$14,match(Sheet2!$A3,Sheet1!$A$2:$A$14,0)+column()-1,2))

    this part looks in the range A2:b14 and compares if exployee is 100,

    if so, look in column B (2 is the equivalent of column B) and show the found value.


    3) +column()-1
    index / match will find the first criteria that match.
    In this case is the first criteria blanc, so we want the second, thirth etc value.
    this part in the formula, will find the second, thirth etc. value if you drag the formula to the right.

    Hope I explained well enough.
    Last edited by oeldere; 06-23-2015 at 02:57 PM.

  7. #7
    Forum Contributor
    Join Date
    01-20-2011
    Location
    liverpool
    MS-Off Ver
    Excel 2016
    Posts
    198

    Re: How to transfer vertical info from one sheet to horizontal direction (another sheet)?

    Gr8! Thank you.

+ 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. Merge Horizontal And Vertical Data in Next Sheet
    By sharma4845 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-01-2014, 07:01 AM
  2. how do i fill vertical colums with info from horizontal info
    By dmccue in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2014, 04:45 PM
  3. Horizontal autofill from vertical data different sheet
    By Chieps in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-04-2013, 11:09 AM
  4. Replies: 1
    Last Post: 03-11-2013, 05:37 AM
  5. comparing vertical list on one sheet to horizontal on another
    By Mike Mick in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2005, 11:35 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