+ Reply to Thread
Results 1 to 7 of 7

Transpose a value that is not zero to a new column in another row

  1. #1
    Registered User
    Join Date
    06-22-2017
    Location
    Vienna
    MS-Off Ver
    MS Excel 2010
    Posts
    3

    Transpose a value that is not zero to a new column in another row

    Hi all,


    I will try to explain my problem in the best way possible. So I am sorry in advance if I am not so clear.

    I have a dataset in excel 2013 which shows accounting entries but in rows. An example below. It is not always 2 rows it can be more..

    In one row I have the full account, all info filled in all columns (45900.10003919.100234) and in the other row I have the "contra account" (14712.000000.000000) where you can see the default zeros.

    Acct$SV$Account Acct$SV$Projects Acct$SV$Award Doc_sequence_value
    14712 00000000 000000 287163
    45900 10003919 100234 287163


    What I want is the following so as to have the information in the same row (Doc_sequence_value is the same for the entries in the ERP software)

    Acct$SV$Account Acct$SV$Projects Acct$SV$Award Doc_sequence_value NEW COLUMN
    14712 00000000 000000 287163 100234
    45900 10003919 100234 287163 100234

    All in all I want the Acct$SV$Award that is not zero in a new column like the above.

    I tried with index, match, vlookup based on the Doc_sequence_value but I couldn't figure it out. Maybe it is something easy and I can't think of it but I would really need your help!


    Thanks so much in advance!

    Evan
    Attached Files Attached Files
    Last edited by Goodangel; 04-01-2021 at 02:30 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Transpose a value that is not zero to a new column in another row

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-22-2017
    Location
    Vienna
    MS-Off Ver
    MS Excel 2010
    Posts
    3

    Re: Transpose a value that is not zero to a new column in another row

    Hi,

    Thanks for the quick reply!

    Sorry for this, I just uploaded an example.. The blue column is what I actually want

    Thanks,

    Evan

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Transpose a value that is not zero to a new column in another row

    May be try in J2:

    =SUMPRODUCT(($H$2:$H$7=H2)*$C$2:$C$7)
    Quang PT

  5. #5
    Registered User
    Join Date
    06-22-2017
    Location
    Vienna
    MS-Off Ver
    MS Excel 2010
    Posts
    3

    Re: Transpose a value that is not zero to a new column in another row

    Hi bebo021999,

    So it worked fine as long as I have two rows where one is 000000. If there is something else apart from 000000 then it is a different number but in any case it is not creating a problem.

    So it worked more or less and saved me a lot of time!!

    Thanks so much!

    Evan

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Transpose a value that is not zero to a new column in another row

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Transpose a value that is not zero to a new column in another row

    Assum:
    All duplicate "DOC_SEQUENCE_VALUE" (Column H) get Acct$SV$Award (Column C) from the last DOC_SEQUENCE_VALUE in column H

    J2 the drag down:

    =IF(H2=H3,J3,C2)

+ 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] Transpose data from one column based on criteria of a different column with VBA Arrays
    By Anasurimbor in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-03-2018, 09:01 AM
  2. transpose column to a range calculate and transpose to new table loop
    By moshro1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-02-2015, 10:52 AM
  3. Macro need Arranging column data in Quiz format using transpose and Text to Column Feature
    By successramesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2014, 02:58 AM
  4. Transpose Data from a Particular Column to Multiple Column whose Range is Non-Continuous!
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:47 AM
  5. Transpose Data from Multiple Column to Single Column
    By smudger1989 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2013, 04:38 AM
  6. Replies: 9
    Last Post: 07-22-2012, 12:03 PM
  7. [SOLVED] Match cells in Column A, then transpose (matching) row data from column B, C, D, etc.
    By Jahoker in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-15-2012, 10:37 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