+ Reply to Thread
Results 1 to 2 of 2

color coordinate web query data based on the number being + or -

  1. #1
    Ukemann
    Guest

    color coordinate web query data based on the number being + or -

    I am trying to color coordinate data which is being imported into excel
    though a web query based on the number being either positive or negative.
    Does anyone know if it is possible to write a macro which would do this.
    Sometimes the numbers will be positive and therefore I want them to show up
    in green and other times the numbers will be negative and I would want them
    to show up in red.

  2. #2
    Philip Reece-Heal
    Guest

    Re: color coordinate web query data based on the number being + or -

    Maybe you don't want a macro.

    Try formatting the column where these numbers are:

    Selecting all the column where the numbers are to go, Select Cells in the
    Format menu and then select the Number tab. In the left hand list select
    custom. Now go into the Type box and type yourself a custom number format:
    If General is in the box (General format) for example, before General type
    [green]. After General type ;[red]-General. Now select OK and you will find
    positive numbers green and negative numbers red with a preceding minus sign.

    If you don't know about custom formats, the codes before ; refer to positive
    and those after ; refer to negative

    All the best
    Philip


    "Ukemann" <Ukemann@discussions.microsoft.com> wrote in message
    news:E0E54F6A-2BF6-4725-84AB-8A9471DB1AAB@microsoft.com...
    >I am trying to color coordinate data which is being imported into excel
    > though a web query based on the number being either positive or negative.
    > Does anyone know if it is possible to write a macro which would do this.
    > Sometimes the numbers will be positive and therefore I want them to show
    > up
    > in green and other times the numbers will be negative and I would want
    > them
    > to show up in red.




+ 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