+ Reply to Thread
Results 1 to 19 of 19

How to wisely copy input from one table to another.

  1. #1
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    How to wisely copy input from one table to another.

    How to wisely copy input from one table to another. I have attached excel file, could you please assist with it. I showed in the file the result I want to achieve.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: How to wisely copy input from one table to another.

    Try this formula:
    Please Login or Register  to view this content.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: How to wisely copy input from one table to another.

    This only helps to identify values in column E. Can we make it that all columns from B to E were inputted by the help of formula

  4. #4
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: How to wisely copy input from one table to another.

    Quote Originally Posted by popipipo View Post
    Try this formula:
    Please Login or Register  to view this content.
    This only helps to identify values in column E. Can we make it that all columns from B to E were inputted by the help of formula

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: How to wisely copy input from one table to another.

    You can use a helper column to identify which column from D to F contains a value, and give each record a unique sequential count. For example, put this formula in cell H6:

    =IF(D6="",IF(E6="",IF(F6="","",300+COUNTIF(F$6:F6,"<>")),200+COUNTIF(E$6:E6,"<>")),100+COUNTIF(D$6:D6,"<>"))

    and copy down to H20. Then you can use the following formulae in the cells stated:

    B25: =IFERROR(INT(SMALL($H$6:$H$20,ROWS($1:1))/100),"")

    C25: =IF(B25="","",IF(E25>=0,"Dr","Cr"))

    D25: =IFERROR(INDEX(C$6:C$20,MATCH(100+ROWS($1:1),$H$6:$H$20,0)),IFERROR(INDEX(C$6:C$20,MATCH(200+ROWS($1:1)-COUNTIF($H$6:$H$20,"<200"),$H$6:$H$20,0)),IFERROR(INDEX(C$6:C$20,MATCH(300+ROWS($1:1)-COUNTIF($H$6:$H$20,"<300"),$H$6:$H$20,0)),"")))

    E25: =IF(B25="","",IF(D25="","",VLOOKUP(D25,$C$6:$F$20,1+B25,0)))

    Copy these 4 formulae down as far as you need to, as can be seen in the attached file - you might find that the commas ( , ) have been converted into semicolons ( ; ), depending on your regional settings.

    Hope this helps.

    Pete

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: How to wisely copy input from one table to another.

    It works to get the values from columns D:G

  7. #7
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: How to wisely copy input from one table to another.

    Quote Originally Posted by popipipo View Post
    It works to get the values from columns D:G
    It is great. But if we have too many columns, inputting every column name would be very hard. impractible

  8. #8
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: How to wisely copy input from one table to another.

    Pete_UK,

    It is impracticable, if we have too many columns, but it works with if we few columns. Do you know how can we configure the formula, so that it could take columns without limitiation.
    Last edited by jeffreybrown; 03-28-2018 at 09:56 AM. Reason: Removed full quote!

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: How to wisely copy input from one table to another.

    How many columns do you expect to have?

    Pete

  10. #10
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: How to wisely copy input from one table to another.

    Around 140

  11. #11
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: How to wisely copy input from one table to another.

    Could you pls help with my request

  12. #12
    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,780

    Re: How to wisely copy input from one table to another.

    Rafa - please be patient! Your last post was yesterday evening (after working hours) and you are now pressing for an answer a few hours later before working hours.

    Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.

    From the forum rules (link in the main menu above):
    • If your question has not been answered within a day, consider adding another post with any additional information you believe is relevant. If you think your post is good as is, just reply to your own thread with the words "Bump no response", which will bring it to the top of the forum.
    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.

  13. #13
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: How to wisely copy input from one table to another.

    ALIGW, I did not intend to make pressure of time on anyone here. Just wrote again, to say that problem is not solved. I will be patient I promise. Have a nice day

  14. #14
    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,780

    Re: How to wisely copy input from one table to another.

    Thank you. However, we know the problem is not yet solved - you don't need to remind us. I am sure that Pete will respond once he is here. I doubt he's had his breakfast yet.

  15. #15
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: How to wisely copy input from one table to another.

    Too right, Ali - at the time you posted (7:07am here), I was still in the Land of Nod.

    I'll take another look at this, but with 140 columns it's probably not very suitable for a formula-based solution.

    Pete

  16. #16
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: How to wisely copy input from one table to another.

    @Rafa,

    in your attachment (with only 3 adjustment columns) there is never more than one adjustment value for each of the descriptions in column C. Is this also the case for your real file of 140 adjustment columns, or might you have more than one adjustment for each record?

    Do you also have more than the 15 descriptions which you show in column C ?

    If your real file differs from the sample that you provided, it would be helpful if you could attach another sample which is more representative of what you really have.

    Pete

  17. #17
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: How to wisely copy input from one table to another.

    Each Column represent one unique adjustment. Description in column C is more or less in the same quantity.
    Last edited by Rafa100; 03-30-2018 at 04:13 AM. Reason: attaching file

  18. #18
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: How to wisely copy input from one table to another.

    Pete

    attached file is real life version

  19. #19
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: How to wisely copy input from one table to another.

    Perhaps this will be of help.
    A helper row (39) is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The Adjustment column is populated by typing the number 1 into cell B45, then using the following in B46 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note: gaps are produced using conditional formatting: =D45="" (font set to white if TRUE).
    The Amount column is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The Balance Sheet Item column is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The Description column is populated using: =IF(D45="","",INDEX(D$4:FH$4,B45))
    The Dr/Cr column is populated as before.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. How to wisely match company name to payment ref number
    By Rafa100 in forum Excel General
    Replies: 5
    Last Post: 03-17-2017, 04:06 AM
  2. Replies: 5
    Last Post: 10-01-2016, 11:55 PM
  3. Get values from input table to add data in output table depending on header
    By SBBmaster09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2016, 03:25 AM
  4. [SOLVED] Copy last input in table
    By mariur89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2016, 08:30 AM
  5. [SOLVED] VBA Copy and Paste with an Input Page to specify copy ranges to new table
    By ExcelNoob243 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2015, 04:52 AM
  6. Replies: 2
    Last Post: 08-27-2014, 03:13 PM
  7. Input Cell to create table with input # of rows
    By pgreenway in forum Excel General
    Replies: 3
    Last Post: 05-04-2011, 03:18 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