+ Reply to Thread
Results 1 to 9 of 9

Excel formula combine in different sheet

  1. #1
    Registered User
    Join Date
    05-23-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    4

    Excel formula combine in different sheet

    Hello All,

    I am trying to create an Output sheet that gives me the result from the Input sheet.
    The input sheet match all the similar criteria with other two sheet (Table array 1 and Table array 2).
    I tried to combine the formula in the Output sheet to use only one column, but to have order results (it means to have no duplicate criteria and no blank cells between the criteria cells) I need to use more then one column.

    The file looks like this (but in this case is an example, since I need to use a formula that matches all the criteria of the column A of the sheet Table array 1, Table array 2 and Input)


    table array 1 (sheet1)
    subject 1
    subject 2
    subject 3
    subject 4
    subject 5
    subject 6
    subject 7
    subject 8
    subject 9
    subject 10
    subject 11


    Table array 2 (sheet2)
    subject f
    subject p
    subject n
    subject l
    subject t
    subject a
    subject b
    subject c
    subject d
    subject e
    subject e

    lookup value (sheet-input)
    subject n
    subject 5
    subject w
    subject 1
    subject 2
    subject e
    subject e
    subject 6
    subject 4
    subject s
    subject w

    The formula that I am using in the column A of the sheet-Output, starting from the cell A2, is:

    =IF(ISERROR(VLOOKUP(input!A2,'table array 1'!$A:$A,1,0)),IF(ISERROR(VLOOKUP(input!A2,'table array 2'!$A:$A,1,0)),"",input!A2),input!A2)

    The result will look like:

    subject n
    subject 5
    subject 1
    subject 2
    subject e
    subject e
    subject 6
    subject 4



    In this case, how can I combine this formula by removing duplicates and white cells in the column A of the sheet-Output?
    Thank you for your time. I am trying to solve this issue from 1 month .

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Excel formula combine in different sheet

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Excel formula combine in different sheet

    Assuming that the data in all of your sheets starts in row 2 (with headers in row 1), try this array formula in A2 of the Output sheet.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    If you need the number of rows to vary as new data is added then I would suggest using dynamic named ranges for that purpose. Changing the ranges used to full columns is not a good idea, calculation times will be horrendously slow!

  4. #4
    Registered User
    Join Date
    05-23-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    4

    Re: Excel formula combine in different sheet

    Quote Originally Posted by Pepe Le Mokko View Post
    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Hi Pepe, Thank you for your answer. I attach the file so it will be easy to understand what my idea is.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-23-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    4

    Re: Excel formula combine in different sheet

    Quote Originally Posted by jason.b75 View Post
    Assuming that the data in all of your sheets starts in row 2 (with headers in row 1), try this array formula in A2 of the Output sheet.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    If you need the number of rows to vary as new data is added then I would suggest using dynamic named ranges for that purpose. Changing the ranges used to full columns is not a good idea, calculation times will be horrendously slow!
    Hi Jason, Thank you for your answer. However the formula that you describe it's not working. I have attach a template of the file just to have an idea what I am planing to have.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Excel formula combine in different sheet

    The formula gives the exact results that you listed at the end of your first post. If it is not working for you then I would have to assume that you either did not enter it correctly or you are using an older version of excel than the one shown on your user profile.

    Saying 'doesn't work' tells us nothing, what happens when you try to enter it? There is a significant difference between 'doesn't work' and 'doesn't work as expected'.
    Can you enter the formula, or do you get a pop up message telling you that there is a problem with the formula?
    Does the formula show an error (an incorrect result is not an error) in the cell? If so, which error? Errors would be in upper case and start with a # symbol.
    Does the formula only work in the first row, but not when you fill down?
    Are the results all blank?
    Something else?

  7. #7
    Registered User
    Join Date
    05-23-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    4

    Re: Excel formula combine in different sheet

    Quote Originally Posted by jason.b75 View Post
    The formula gives the exact results that you listed at the end of your first post. If it is not working for you then I would have to assume that you either did not enter it correctly or you are using an older version of excel than the one shown on your user profile.

    Saying 'doesn't work' tells us nothing, what happens when you try to enter it? There is a significant difference between 'doesn't work' and 'doesn't work as expected'.
    Can you enter the formula, or do you get a pop up message telling you that there is a problem with the formula?
    Does the formula show an error (an incorrect result is not an error) in the cell? If so, which error? Errors would be in upper case and start with a # symbol.
    Does the formula only work in the first row, but not when you fill down?
    Are the results all blank?
    Something else?
    The formula is working fine, what i would like to do is to integrate in the formula criteria that will make order. In this case deleting duplicates and white cells.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Excel formula combine in different sheet

    Please don't quote entire posts unnecessarily. They are just clutter and make threads hard to read.
    Use the "Quick reply" instead
    Thanks

  9. #9
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Excel formula combine in different sheet

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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. Combine info from two excel sheet
    By London123 in forum Excel General
    Replies: 20
    Last Post: 01-31-2019, 12:39 PM
  2. [SOLVED] Combine many .csv files into one excel sheet
    By Wendso in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-30-2018, 01:50 AM
  3. TXT file combine in to Excel sheet
    By Surendra Kumar Savit in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 02-07-2018, 06:01 AM
  4. Need VBA: Combine excel files to 1 sheet
    By navafolk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2016, 10:06 AM
  5. How to combine worksheets into one main sheet using formula
    By gr8rck in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2015, 06:55 PM
  6. [SOLVED] combine multi workbooks into one master workbook but I want to combine only sheet 3
    By Goodstart14 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-31-2013, 12:22 AM
  7. Indirect - combine two cells to look up sheet name for formula
    By lou031205 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-02-2007, 08:03 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