+ Reply to Thread
Results 1 to 8 of 8

Mix data from another excel

  1. #1
    Registered User
    Join Date
    01-03-2015
    Location
    Cph
    MS-Off Ver
    Microsoft Home and Business 365
    Posts
    19

    Mix data from another excel

    In Emner.xlsx, the name can occur, and if it does with this formula = IF (COUNT IF ([Investors.xlsx] Sheet1! $ A $ 2: $ A $ 10; 'Sheet1'! $ A1); "Exist"; "NEW ")
    then it says Exist.
    If there is also a number in B in Emner.xlsx, this number should be written, if nothing else it is empty.
    What formula do I need to get that number from the same row as the name in the other sheet?
    It does not matter that the number also comes with the rows where it says New, but it is not needed

    File "investors" has this:
    Andersen 0
    Petersen 10
    Jensen 20
    Nielsen 30
    Skov 30
    Hansen 40

    file "emner" should show:
    Hansen Exist 40
    Skov Exist 30
    Nielsen Exist 30
    Peter New
    Niels New
    Børge New
    Attached Files Attached Files

  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,987

    Re: Mix data from another excel

    Please update your forum profile with your current version of Office.

    Please provide a composite sample workbook with data on different tabs representing the different workbooks.
    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
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Mix data from another excel

    Hi and welcome to the forum

    B1: =IF(ISERROR(MATCH(A1,[Investorer.xlsx]Ark1!$A:$A,FALSE)),"New","Exist")
    C1: =IF(B1="Exist",INDEX([Investorer.xlsx]Ark1!$B:$B,MATCH(A1,[Investorer.xlsx]Ark1!$A:$A,FALSE),1),"")

    both copied down as necessary
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    01-03-2015
    Location
    Cph
    MS-Off Ver
    Microsoft Home and Business 365
    Posts
    19

    Re: Mix data from another excel

    Thanks for trying to learn me, but I did not get it working.
    Can you put the solution into the file emner.xlsx and get the wished figures E1=40, E2=30, E3=30 and nothing in E4, E5 and E6 ??
    /Bendt

  5. #5
    Registered User
    Join Date
    01-03-2015
    Location
    Cph
    MS-Off Ver
    Microsoft Home and Business 365
    Posts
    19

    Re: Mix data from another excel

    Sorry, forgot to update - Done

  6. #6
    Registered User
    Join Date
    01-03-2015
    Location
    Cph
    MS-Off Ver
    Microsoft Home and Business 365
    Posts
    19

    Re: Mix data from another excel

    Thanks a lot for your help

  7. #7
    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,987

    Re: Mix data from another excel

    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.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Mix data from another excel

    Quote Originally Posted by Bendt Skov View Post
    Thanks for trying to learn me, but I did not get it working.

    /Bendt
    It may be that English is not your first language so please accept this comment in the helpful way it's intended.

    We don't say someone is trying to 'learn' someone, we use the word 'teach'. Learning is something you receive, teaching is something you give.

+ 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. Excel Macro to copy Excel Invoice data to Excel Database - Works Perfect. But
    By asifmars in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2014, 04:01 AM
  2. Copying content of one excel to another excel and sending email with excel data
    By archies.gall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2012, 02:22 PM
  3. [SOLVED] Move data from excel 1 to excel 2 and also copy file name as sheet name in excel 2
    By akulas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2012, 04:20 AM
  4. Use of Excel to pull data from database daily, posting new data below older data
    By Ishness in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2011, 10:08 AM
  5. Updating Excel data with a newer version of Excel data
    By steviec334567 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2006, 07:15 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