+ Reply to Thread
Results 1 to 4 of 4

Dynamic (not conditional) formatting

  1. #1
    Registered User
    Join Date
    12-05-2008
    Location
    Shelton, CT
    Posts
    2

    Dynamic (not conditional) formatting

    I'm using the following formula... (Excel 2003)
    =SUMIF(DataResource,Role,ResourceHours)/IF(DisplayAs="FTEs",40,1)

    I would like the number displayed to show one decimal if DisplayAs="FTE", but show integers if not...

    I've tried conditional formatting but that doesn't allow changing the number formatting.

    Anybody have an idea?

    Thanks!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Not sure if this is what you mean?

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Use formula to format result

    =IF(DisplayAs="FTEs",TEXT(SUMIF(DataResource,Role,ResourceHours)/40,"0.0"),TEXT(SUMIF(DataResource,Role,ResourceHours),"0"))

    or

    =IF(DisplayAs="FTEs",ROUND(SUMIF(DataResource,Role,ResourceHours)/40,1),ROUND(SUMIF(DataResource,Role,ResourceHours),0))
    Last edited by Andy Pope; 12-05-2008 at 09:32 AM.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I used TRUNC() instead of ROUND() because I am not sure you wanted to round to 1 decimal or just display that first decimal without rounding..... the TRUNC() just truncates at the decimal point you request.

+ 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