+ Reply to Thread
Results 1 to 14 of 14

Is there any way to have the formatting of a cell translated to a number?

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    USA
    MS-Off Ver
    2003
    Posts
    37

    Is there any way to have the formatting of a cell translated to a number?

    I have a big database of stuff (thousands of rows) where I've been using the background color of cells as a way to sort of check off the status of an item. I just realized yesterday that the color approach leaves me no recourse if I want to sort by items that have a different status. At this point, I'm mostly just resigned that I'll have to make up for my mistake the hard way (by manually entering a number for each item, one-by-one), but I just wanted to check in here and make sure there's not some easier way to do it before I put all that time in.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,498

    Re: Is there any way to have the formatting of a cell translated to a number?

    not sure I'm totally following but if you have columns of numbers that are formatted as text and you want to convert them quickly here is the fastest trick I know of...
    highlight all the areas that have them (even if some are already numbers) then go to the data tab at the top, click on text to columns then when the box opens, if delimited is clicked leave it go, if not click it then just hit finish and they'll all convert to numbers.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Is there any way to have the formatting of a cell translated to a number?

    Not sure if this will help, but you can filter by color (as long as teh color was applied manually). You could then maybe add a number on a helper column to that filter (you can copy/paste in a filter, and the hidden rows wont be pasted to), select the next color, add a 2nd number, rinse amd repeat.

    This will give you a helper column with a bunch of numbers in your helper that you can then use for all sorts of things - sort/sum/count/avg etc

    Give this a try and if you have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-12-2014
    Location
    USA
    MS-Off Ver
    2003
    Posts
    37

    Re: Is there any way to have the formatting of a cell translated to a number?

    Quote Originally Posted by Sambo kid View Post
    not sure I'm totally following but if you have columns of numbers that are formatted as text and you want to convert them quickly
    I didn't mean that kind of formatting, I meant like some cells have a blue background, some have a gray background, etc.

  5. #5
    Registered User
    Join Date
    07-12-2014
    Location
    USA
    MS-Off Ver
    2003
    Posts
    37

    Re: Is there any way to have the formatting of a cell translated to a number?

    Quote Originally Posted by FDibbins View Post
    Not sure if this will help, but you can filter by color (as long as teh color was applied manually). You could then maybe add a number on a helper column to that filter (you can copy/paste in a filter, and the hidden rows wont be pasted to), select the next color, add a 2nd number, rinse amd repeat.
    This sounds like it would be a solution, but I'm not clear on how to do that. When I select Data > Filter, it doesn't seem to have any options that can do what you describe.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Is there any way to have the formatting of a cell translated to a number?

    do you know how to set/apply filters?
    (sorry if that is a dumb question lol)

    And are you really using 2003?

  7. #7
    Registered User
    Join Date
    07-12-2014
    Location
    USA
    MS-Off Ver
    2003
    Posts
    37

    Re: Is there any way to have the formatting of a cell translated to a number?

    No and yes, unfortunately. I'm guessing something like this would probably be easier to do in a newer version.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Is there any way to have the formatting of a cell translated to a number?

    hmm I dont recall what the filter options in 2003 are now. In 2016, there is a "filter by color" option - it may not have been included in 2003.

    Is there any logic to how the colors were applied in the 1st place?
    Can you upload a small (clean) sample file, showing what you have and what you want?

  9. #9
    Registered User
    Join Date
    07-12-2014
    Location
    USA
    MS-Off Ver
    2003
    Posts
    37

    Re: Is there any way to have the formatting of a cell translated to a number?

    Quote Originally Posted by FDibbins View Post
    In 2016, there is a "filter by color" option - it may not have been included in 2003.
    According to this page on Stack Overflow, there isn't any way to do it natively, but it can be done with an add-on called ASAP Utilities. You know anything about that? It looks like the home version is free, but I don't want to install it if it will cause other problems.

    Is there any logic to how the colors were applied in the 1st place?
    It's basically just like checking off items on a to-do list, but a really freaking long list.

    Can you upload a small (clean) sample file, showing what you have and what you want?
    I can still do that if you really want me to, but I can tell you with confidence that there's nothing in the actual values that will make it sortable along the same lines as the highlighting.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Is there any way to have the formatting of a cell translated to a number?

    I have used ASAP before, it gives LOTS of options (perhaps too many lol)
    I will take your word that the color is (effectively) random

  11. #11
    Registered User
    Join Date
    07-12-2014
    Location
    USA
    MS-Off Ver
    2003
    Posts
    37

    Re: Is there any way to have the formatting of a cell translated to a number?

    Quote Originally Posted by FDibbins View Post
    I have used ASAP before, it gives LOTS of options (perhaps too many lol)
    Is it the kind of thing that can be installed for just this one task, and then easy removed without a trace after I'm done (if I didn't want all those options to still be around)?

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Is there any way to have the formatting of a cell translated to a number?

    Yup, it should be

  13. #13
    Registered User
    Join Date
    07-12-2014
    Location
    USA
    MS-Off Ver
    2003
    Posts
    37

    Re: Is there any way to have the formatting of a cell translated to a number?

    Cool, I guess I'll check that out then.

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Is there any way to have the formatting of a cell translated to a number?

    Thanks for the feedback

+ 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. Translated UDF name. How?
    By lord anubis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2019, 06:36 PM
  2. date translated to value
    By Rosemouth in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-25-2019, 07:10 AM
  3. 1st 3 octets get subnet translated
    By bharath18091991 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-19-2018, 08:40 AM
  4. Need this PV formula translated
    By Anonymous71 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2015, 03:36 PM
  5. Hotkeys translated to Swedish
    By InNeedOfHelp12345 in forum Excel General
    Replies: 2
    Last Post: 01-15-2015, 06:20 AM
  6. [SOLVED] Manipulate a cell value so that first number is translated to a letter
    By CNE5x in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2012, 04:04 PM
  7. Cell values translated to color gradients: macro needed
    By DudeHey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2011, 11:57 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