+ Reply to Thread
Results 1 to 2 of 2

Change Cell value format in all sheets based on multi conditions

  1. #1
    Forum Contributor
    Join Date
    01-06-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    118

    Change Cell value format in all sheets based on multi conditions

    HI,


    I want to run the vba code through all worksheets to change cell value format (as per cell view) to Integer / 2 decimal number.


    Example:

    in "Store MTD" Worksheet (C column), we can see C2 , C4 cell values are 3.25 & 0.923076923076923 respectively (in formula bar ), But code should return those cell values as 3,1 (based on our view towards cell).

    if the cell value is integer then code should return integer number

    if the cell value is decimal number like 34.5574893 or 23.82 then code should return as 34.56 / 23.82

    if the cell value is percentage like 34.76% / 0% / 80%/100%/30.00%/23.654555% then code should return as 34.76 / 0/ 80/100/30/23.65


    thank you in advance.


    Regards
    Shiva
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Change Cell value format in all sheets based on multi conditions

    Try:
    Please Login or Register  to view this content.
    Attached Images Attached Images

+ 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. Google Sheets: Formula I can use with multi conditions
    By CullyM in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 07-12-2018, 01:06 PM
  2. Replies: 4
    Last Post: 10-05-2017, 09:37 AM
  3. Copy Multi Rows From Multi Sheets Based On Column Value And Create New Workbooks
    By Huskersippi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2017, 04:51 PM
  4. [SOLVED] Change pattern based on cell value (Multiple conditions)
    By amein in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-10-2016, 05:28 AM
  5. Replies: 10
    Last Post: 02-17-2016, 06:28 AM
  6. Replies: 7
    Last Post: 11-25-2012, 01:24 AM
  7. Conditional Formatting 4+ conditions, format rows based on cell
    By nockam in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-12-2006, 06:12 PM

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