+ Reply to Thread
Results 1 to 7 of 7

Two results in a single cell with text

Hybrid View

  1. #1
    Registered User
    Join Date
    03-26-2016
    Location
    cz
    MS-Off Ver
    07/10
    Posts
    73

    Two results in a single cell with text

    Hello,

    Is it possible to view two results of formulas (or perhaps directly two formulas) in a single cell?

    example

    I have two columns of numbers and i would like to combine them

    1 5
    1 3
    1 4
    2 2
    3 1

    in a third column i would like each cell for each row to show me the result as " 1 (5) " (Example of the first row)

    is that possible?

    instead of the brackets there could also be words, like " 1 and remaining 5 "

    the 1 and 5 should be linked results of course.


    Kinda like what "printf" does in c

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,493

    Re: Two results in a single cell with text

    Try this:

    =A1&" and remaining "&B2
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-26-2016
    Location
    cz
    MS-Off Ver
    07/10
    Posts
    73

    Re: Two results in a single cell with text

    oh awesome that works, so text is separated by &? can i use this to put two formulas in one cell, i mean =A1 is basically a formula?
    Now i just have to find how to write " & "

    Thanks for the very fast and simple answer

  4. #4
    Registered User
    Join Date
    03-26-2016
    Location
    cz
    MS-Off Ver
    07/10
    Posts
    73

    Re: Two results in a single cell with text

    Conditional formatting doesnt seem to like this though, can i apply conditional formating to just one part of the cell (as in the first number) ?

    i had a MIN and MAX function highlighting the numbers, can that be aplied when i add text in the cell?

    or should i make a separate thread for that?
    Last edited by tigfur; 04-17-2016 at 01:49 PM.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Two results in a single cell with text

    Maybe this

    1.

    Formula: copy to clipboard
    =A1&" "&"("&B1&")"


    2.

    Formula: copy to clipboard
    =A1&"  and remaining "&B1


    v A B C D E
    1 1 5 1 (5) 1 and remaining 5
    2 1 3 1 (3) 1 and remaining 3
    3 1 4 1 (4) 1 and remaining 4
    4 2 2 2 (2) 2 and remaining 2
    5 3 1 3 (1) 3 and remaining 1
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Two results in a single cell with text

    Unfortunately your request required string manipulation and may not be suitable for Conditional Formatting.

  7. #7
    Registered User
    Join Date
    03-26-2016
    Location
    cz
    MS-Off Ver
    07/10
    Posts
    73

    Re: Two results in a single cell with text

    Which... also means other functions are not able to grab this cells numbers either?

    Good to know, it has to be a plain output cell then, ill make that work. Thanks!

    (would be kinda cool if i could highlight it if the numbers were the same though) perhaps i can use CF on the source cells and let the CF color the output cells

    EDIT: ah no, i cant :D

+ 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. Replies: 7
    Last Post: 01-24-2013, 06:55 PM
  2. Single cell with changing results?
    By Celulloyd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2013, 04:39 PM
  3. [SOLVED] Require Function to Lookup and Concatenate Mulltiple Results To Single Cell
    By nuttyengineer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2012, 12:19 AM
  4. [SOLVED] lookup multiple values of a single cell and return sum of results
    By Zeppelin17 in forum Excel General
    Replies: 7
    Last Post: 08-10-2011, 07:09 PM
  5. open some txt files ,find text , copy the text before that to a single cell
    By gus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2005, 01:05 PM
  6. [SOLVED] Can multiple cell results be displayed in a single cell?
    By FuadsCurse in forum Excel General
    Replies: 3
    Last Post: 05-18-2005, 01:06 PM
  7. [SOLVED] Displaying the results of multiple formulas in a single cell.
    By gallegos1580 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-12-2005, 01:06 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