+ Reply to Thread
Results 1 to 20 of 20

Trying to merge two formulas in one cell.

  1. #1
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Trying to merge two formulas in one cell.

    Hello again !

    90% solved of the formula.
    Please see new updated sheet. Post #16


    I have two cells with different formulas in them. I try to merge both formulas in a third cell to show different results. Depends on the case. All solutions found in searches made ​​by me does not fit my case. I can not use pivot table and not concatenated. Just a simple merge both formulas in a third cell if possible.

    Case 1 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    join to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Case 2 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    join to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks in advance for any ideas !

    Cross posted at Ozgrid.
    Attached Files Attached Files
    Last edited by Anka; 12-18-2012 at 07:24 PM. Reason: 90% solved of the formula.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: Trying to merge two formulas in one cell.

    I think that this is what you are trying to determine

    http://www.techonthenet.com/excel/fo.../if_nested.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Trying to merge two formulas in one cell.

    How can you merge them, they act differently on the same condition.

  4. #4
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Thanks for your answers. I tried to simplify the explanation for my problem. I will expose an example here immediately.

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Trying to merge two formulas in one cell.

    You might want to take some time to read the forum rules, especially about cross posting.

    You cross posted at Ozgrid.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  6. #6
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Hi Palmeto.

    I did not know it is a problem. There are two different forums that deal with the same subject. I put the link here.

  7. #7
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    I Put here an example of what I want to do.
    Attached Files Attached Files
    Last edited by Anka; 12-16-2012 at 01:28 PM.

  8. #8
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    I think that this is what you are
    Quote Originally Posted by alansidman View Post
    Yes something like that.
    But honestly, I do not know exactly how to change the formula. My knowledge in excel are very poor.

  9. #9
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    So it seems that is not easy?

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: Trying to merge two formulas in one cell.

    I have looked at your example and don't understand what you want. What is the expected result if you were to "merge" the two formulae. This might help us to help you.

  11. #11
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Come on, guys.

    Just a simple mix of cells. Where are the knights excel in this forum ?

    Just kidding. It seems not easy.

  12. #12
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Trying to merge two formulas in one cell.

    Do you mean merge the 2 formula to attain EG: 99 2

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Hi alansidman .

    Thanks for your answer.
    I tried to merge, (I do not know exactly what is the word, combine or join but not concatenate) formulas. Expected results are numbers as in the picture attached.I want to choose what results to show first based on my choice (check mark).
    The formula in column 3 combined with formula in column 1, produces a result in column 1. The formula in column 4 combined with formula in column 2, produces a result in column 2.
    Attached Images Attached Images

  14. #14
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Quote Originally Posted by Kevin UK View Post
    Do you mean merge the 2 formula to attain EG: 99 2

    [/FORMULA]
    Thanks for the response.
    Not really. Your example is similar to concatenated.
    I want to put 99 into a cell and 2 in another cell. You need to see the first sheet. Try to change mark check to see what you get.

  15. #15
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Maybe I confused a little my explanation.
    I attach a photo of the first sheet may manage to explain it better.
    Attached Images Attached Images

  16. #16
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Hello again.

    Summarizing. My work worksheet has two sheets. I inserted dummy data, but the worksheet construction is similar to the original. In Sheet1 are entered the data (how?, Is not important). The only thing changing here is the choice case (by putting an "a" in column J or K).
    Basically, I want to choose what results to show first in sheet "Desired Results" column E and G, based on my choice.

    Case 1. - In sheet "Desired Results" column E and G must appear YEARS AND HEIGHT.
    Case 2. - In sheet "Desired Results" column E and G must appear WEIGHT AND RACE.

    After several attempts (on blindly) I managed to do 90% of the formula. It works well, but if nothing is marked in Sheet1, the result is FALSE. What should I do to have an empty cell.

    I think my problem can be solved with VBA code. See here. But how?

    Please Login or Register  to view this content.
    Thanks in advance for any suggestion.
    Attached Files Attached Files

  17. #17
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Well ??

  18. #18
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Problem solved.
    All credits to djapigo.
    See example attached.
    Attached Files Attached Files

  19. #19
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Trying to merge two formulas in one cell.

    not really sure of what exactly you are trying to do here, but if you want the same conditions to put two different numbers in two different cells..
    Cell 1: your formula = result 1
    Cell 2: your formula = result 2
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  20. #20
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Trying to merge two formulas in one cell.

    Hi dredwolf.

    Thanks for the interest shown to helping.
    So, we need to mix Both formulas to see, depending on choice made, two results in 1 cell.
    However, I was able to combine the two formulas, just as I have an error (FALSE) if nothing was selected. The case was resolved. If you want to see how, go here.
    http://www.excelforum.com/excel-form...-of-false.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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