+ Reply to Thread
Results 1 to 4 of 4

Counting Up Bolded Values

  1. #1
    Registered User
    Join Date
    04-09-2007
    Posts
    2

    Counting Up Bolded Values

    Heya Guys,

    Maybe you can help me on this one as i am totally lost.

    Ok the worksheet goes something like this

    11/03/2006 Q1
    11/03/2006 Q1
    11/03/2006 Q2
    11/03/2006 Q2
    11/03/2006 Q2
    11/03/2006 Q2
    11/03/2006 Q3
    11/03/2006 Q4
    11/03/2006 Q4
    11/03/2006 Q5
    11/03/2006 Q5
    11/03/2006 Q5
    11/03/2006 Q6
    11/03/2006 Q7

    Ok the Q? is added by me manually. But i need some kind of formula that can add the Q and increment of number everytime the text goes bold and unbold since there are around 25000 lines to go through :D.

    Thank you for help.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    You can't use a formula to test the font style of a cell, you need to use vba code. The following code does this, but makes some assumptions not knowing the layout of your data:
    Please Login or Register  to view this content.
    This assumes your data starts in row 1, column A containing the bold/unbold data and column B containing Q#. If your data starts elsewhere, or in another row, you'll have to adjust some values accordingly. As an example, if your data started in row 2, columns C and D, it would look like:
    Please Login or Register  to view this content.
    Hope that helps.
    Last edited by Paul; 04-09-2007 at 06:11 AM.

  3. #3
    Registered User
    Join Date
    04-09-2007
    Posts
    2
    Hello Paul,

    Thank you very much for help :D

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    You're very welcome. Glad to assist.

+ 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