+ Reply to Thread
Results 1 to 5 of 5

Significance level in cells

  1. #1
    Registered User
    Join Date
    09-16-2012
    Location
    Lausanne
    MS-Off Ver
    Excel 2007
    Posts
    20

    Significance level in cells

    Hi

    I would like to add 1, 2, or 3 asterisks after a number in cell, depending on the value of the cell just aside (significance levels - 1 asterisk if the cell aside is < 0.1, 2 if < 0.05, 3 if < 0.01).

    I tried cobining "if" and "concatenate", but the if supports only 1 option and not 3..

    I checked older posts and it seems to me that the issue was only addressed for charts and graphs.

    Thank you

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Significance level in cells

    If your value is in cell A1 then this should work:

    =REPT("*",IFERROR(MATCH(A1,{0.1,0.05,0.01},-1),0))

  3. #3
    Registered User
    Join Date
    09-16-2012
    Location
    Lausanne
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Significance level in cells

    It actually does!
    Thank you very much!

    For completeness..., then I guess I have just to combine it with CONCATENATE in order to attach the asterisk to the number as I was doing before (?).

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Significance level in cells

    CONCATENATE is generally a waste of letters, because everything it does can be done with a simple & ...

    =A1 & REPT("*",IFERROR(MATCH(A1,{0.1,0.05,0.01},-1),0))

  5. #5
    Registered User
    Join Date
    09-16-2012
    Location
    Lausanne
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Significance level in cells

    Great!
    Thanks!

+ 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