+ Reply to Thread
Results 1 to 5 of 5

Need to change the colour of a shape according to its value

Hybrid View

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    35

    Need to change the colour of a shape according to its value

    Hi guys,

    I have the a bunch of shapes I need fill with the colour green but I want the shade of green to be darker if the number is higher. Below is my data set. So for example I want Russia to be the greenest (because it is largest) and Luxembourg to be the least green etc...

    Autoshape Name Country Population
    S_ALB Albania 3,639,453
    S_AUT Austria 8,210,281
    S_BEL Belgium 10,414,336
    S_BGR Bulgaria 7,204,687
    S_BIH Bosnia and Herzegovina 4,613,414
    S_BLR Belarus 9,648,533
    S_CHE Switzerland 7,604,467
    S_CZE Czech Republic 10,211,904
    S_DEU Germany 82,329,758
    S_DNK Denmark 5,500,510
    S_ESP Spain 40,525,002
    S_EST Estonia 1,299,371
    S_FIN Finland 5,250,275
    S_FRA France 64,057,792
    S_GBR United Kingdom 61,113,205
    S_GRC Greece 10,737,428
    S_HRV Croatia 4,489,409
    S_HUN Hungary 9,905,596
    S_IRL Ireland 4,203,200
    S_ITA Italy 58,126,212
    S_LTU Lithuania 3,555,179
    S_LUX Luxembourg 491,775
    S_LVA Latvia 2,231,503
    S_MDA Moldova 4,320,748
    S_MKD Macedonia 2,066,718
    S_NLD Netherlands 16,715,999
    S_NOR Norway 4,660,539
    S_POL Poland 38,482,919
    S_PRT Portugal 10,707,924
    S_ROM Romania 22,215,421
    S_RUS Russia 140,041,247
    S_SR Serbia 7,379,339
    S_SVK Slovakia 5,463,046
    S_SVN Slovenia 2,005,692
    S_SWE Sweden 9,059,651
    S_UKR Ukraine 45,700,395

    Could someone please help me with the code as I dont know where to start.

    Thanks
    Ryan

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Need to change the colour of a shape according to its value

    Ryan

    Can you attach a sample workbook?

    Is it OK for some of the countries to share the same colour?

  3. #3
    Registered User
    Join Date
    08-10-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Need to change the colour of a shape according to its value

    yeah sure.

    please see attached.

    Thanks
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-10-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Need to change the colour of a shape according to its value

    well ideally i'd like the colors to be on a gradient scale. i.e. based on the population

  5. #5
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Need to change the colour of a shape according to its value

    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

+ 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