+ Reply to Thread
Results 1 to 2 of 2

Cell Formatting Query: How to format based on the cells value

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Cell Formatting Query: How to format based on the cells value

    Hi,

    I'm creating a report where all the source numbers are negative but i'd like to show them as positive. Also given that they vary in value so greatly i'd like to format any numbers less than -1,000,000 to the nearest thousand (£#,##0.0,"k") and any numbers greater than -1,000,000 to the nearest million (£#,##0.0,,"m").

    I've asked a similar query in the past here: http://www.excelforum.com/excel-gene...mat-query.html
    but i'm struggling to adapt that to my current needs?

    Any suggestions?!?!

    Thanks

    Snook

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Cell Formatting Query: How to format based on the cells value

    Hi snook

    To change the figures to positive (assuming the values to be in column A):
    either
    A.
    in a helper column eg row 1
    Please Login or Register  to view this content.
    or B.
    just to show the minus figure without the "-" use cell format
    Please Login or Register  to view this content.
    To then show as you have requested, if you have used my suggestion A., all you need to change in the format from http://www.excelforum.com/excel-gene...mat-query.html

    Please Login or Register  to view this content.
    is

    Please Login or Register  to view this content.
    otherwise if you have used my suggestion B:
    [CODE][>-1000000] #,##0.0,"k";[<=-1000000] #,##0,,"m"[CODE]

    Regards
    Alastair
    Last edited by aydeegee; 07-26-2013 at 09:13 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Workaround to Conditional Formatting based on a Format of another cell
    By sarkman22 in forum Excel General
    Replies: 5
    Last Post: 05-10-2013, 01:24 PM
  2. Replies: 2
    Last Post: 09-26-2012, 04:43 AM
  3. Using Conditional Formatting to format range based on one cell
    By panamakevin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2012, 09:50 PM
  4. Replies: 2
    Last Post: 12-21-2011, 06:01 PM
  5. [SOLVED] how do i format a cell based on format of a range of cells?
    By Chris Hardick in forum Excel General
    Replies: 2
    Last Post: 04-03-2006, 03:55 AM

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