+ Reply to Thread
Results 1 to 5 of 5

Excel combine two formula into one

  1. #1
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Unhappy Excel combine two formula into one

    Hi All,

    I am facing issue while combine two formula into one. In sheet1 I have two different outputs from two different formulas. I need only result in one column. I tried my level best however still not able to resolve it. Please refer attachment.

    Please help out here. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,691

    Re: Excel combine two formula into one

    I started to write a formula for you when I realized you have a serious logic problem in the formulas in column E. Here is a sample:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If VLOOKUP does not produce an error, your OR will always be TRUE. No matter what the VLOOKUP returns, the result will always be either not "TLE" or not "CBF".

    What are you really trying to test for here? If you are trying to look for the opposite of the condition in the formula in column D, then maybe you want that OR to be an AND, meaning the result is neither "TLE" nor "CBF".
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Excel combine two formula into one

    Try this....it is messy so I will see if I can simplify it...
    =IFERROR(IF(OR(VLOOKUP(Sheet2!B2,Sheet1!B:C,2,0)<>"TLE",VLOOKUP(Sheet2!B2,Sheet1!B:C,2,0)<>"CBF"),Sheet2!B2,"NO"),IF(OR(VLOOKUP(Sheet2!A2,Sheet1!A:C,3,0)="TLE",VLOOKUP(Sheet2!A2,Sheet1!A:C,3,0)="CBF"),Sheet2!A2,"NO"))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Excel combine two formula into one

    Hi 6StringJazzer,

    Thanks for your reply. I need data based on column C i.e. if TLE or CBF is there then get data column A. The next part is I need value which is neither equal to TLE nor CBF however it should get values from column B. If my formula is incorrect then please advise a good formula which can achieve my object.

  5. #5
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Excel combine two formula into one

    Hi 6StringJazzer,,

    We are near it however its failing when I changed data (I did not changed formula). Will you please have look into it. PFA
    Attached Files Attached Files

+ 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] How to combine IF and MAX formula?
    By MYEM1983 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-14-2013, 03:49 PM
  2. Replies: 1
    Last Post: 03-16-2013, 03:58 PM
  3. combine 100 different formula
    By jeff carino in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2012, 07:24 AM
  4. Combine different formula
    By jeff carino in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2012, 08:31 AM
  5. [SOLVED] Using Combine macro to combine multiple worksheets - need to modify to paste formulas
    By DLSmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2012, 09:07 AM
  6. Macro formula to combine 2 excel files into 1
    By ecedillo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-28-2009, 12:58 PM
  7. Replies: 14
    Last Post: 04-10-2009, 03:28 AM
  8. Combine formula as one
    By flyeaglesfly in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-17-2008, 08:32 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