+ Reply to Thread
Results 1 to 6 of 6

Two formulas in one cell giving two results, possible?

  1. #1
    Registered User
    Join Date
    02-24-2016
    Location
    rio
    MS-Off Ver
    2010
    Posts
    16

    Two formulas in one cell giving two results, possible?

    Hi! I am wondering if this is possible...I have used the countif function to count data from a selected range, I then would like to show that value as a percentage next to that number in brackets.

    I am counting the number of pole positions during a season which will give an absolute number. I then want to divide this number by the number of starts and have this show in brackets in the same cell. Is this possible or should I just create a new column and call it pole %?

    Thanks!

  2. #2
    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
    53,049

    Re: Two formulas in one cell giving two results, possible?

    Create both formulas, then just join them together...

    =COUNTIF()&" "&yourotherformula

    =SUM(A1:A10)&" (with "&"countif(A1:A10,A1)&" starts)"
    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

  3. #3
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Two formulas in one cell giving two results, possible?

    If you plan to manipulate the resulting data at all, you'd be much smarter to use two columns. If you really want them both in one cell, it's not necessarily impossible, but more information (ideally a sample workbook) would help.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,453

    Re: Two formulas in one cell giving two results, possible?

    Is this possible or should I just create a new column and call it pole %?
    Yes, it is possible, but, IMO, you should keep them in separate cells. I find that a spreadsheet is much easier to work with when each cell contains only one piece of information.

    If it was very important to me to combine the two pieces of information, it would look like this:
    Please Login or Register  to view this content.
    Using the helper columns like that, I still have easy access to each individual piece of information, as well as the concatenated text string with both pieces of information that I can use for display purposes.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    02-24-2016
    Location
    rio
    MS-Off Ver
    2010
    Posts
    16

    Re: Two formulas in one cell giving two results, possible?

    Thanks for the quick replies! I have decided to create a new column and align it to the left so that they will appear to be in the same cell. How do I make it so that all the data in this new column is displayed in brackets, preferable with a % next to the number?

    Thanks again!

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,453

    Re: Two formulas in one cell giving two results, possible?


+ 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. vlookup giving #N/A results
    By Jazzzbo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-18-2014, 12:28 AM
  2. COUNTIF giving wrong results
    By Excel_vba in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-29-2013, 04:17 PM
  3. WorksheetFunction.Quartile giving different results!!??!!
    By Orongo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-04-2013, 12:12 PM
  4. VLOOKUP not giving apt results....
    By lifeisaspreadsheet in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-04-2012, 04:36 AM
  5. Formula results giving 29/01/1990?
    By Finalfrontier1976 in forum Excel General
    Replies: 2
    Last Post: 03-24-2010, 03:46 PM
  6. Drop Down Box / VLookup not giving results
    By waki01 in forum Excel General
    Replies: 4
    Last Post: 01-08-2009, 05:04 PM
  7. [SOLVED] "if, IsError,Cell & Formulas";giving error message when cell is #R
    By coco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2005, 11:05 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