+ Reply to Thread
Results 1 to 2 of 2

Including results of formula within concatenate function

  1. #1
    Registered User
    Join Date
    09-09-2008
    Location
    Troy, MI
    MS-Off Ver
    2010
    Posts
    95

    Including results of formula within concatenate function

    Hi,

    I have a table in a spreadsheet where the user enters a percentage into one of three categories to weight each so that the total of all categories equals 100%. All three categories must have an percentage entered.

    Below the table, there is a cell that contains a constant text that explains the results of the above table AND needs to include the name or names of the categories with the highest percentage.

    I believe using the concatenate function is the proper choice whereby the consant text may be concatenated with the results of a nested conditional formula that returns the appropriate category label depending upon which category in the table above has the highest percentage.

    My problem seems to be that the concatenate formula is unable to combine the constant text with the results of a conditional formula nested within the formula.

    My formula looks something like this =concatenate("The results of the above calculation indicate", =if(and(a1>a2,a1>a3),"red",""), "is the appropriate color."). Where a1 contains a percentage larger than either that contained within cells a2 or a3.

    The formula returns an error. Any suggestions would be appreciated.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Including results of formula within concatenate function

    drop the = in front of =IF
    or just use
    ="The results of the above calculation indicate "&IF(AND(A1>A2,A1>A3),"red","")&" is the appropriate color."
    Last edited by martindwilson; 09-23-2009 at 05:42 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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