+ Reply to Thread
Results 1 to 3 of 3

Table Extract based on Font

Hybrid View

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    49

    Table Extract based on Font

    Hi, I have a table that lists region numbers in column A, month numbers as headers and it's filled with values that represent sales (or blanks if there were no sales in the region in a particular month)
    Some of the sales numbers are in bold font, I need to create a different table that would only include bold values along with the corresponding region number and month. The sample file is attached.
    Tab "Records" has the data, tab "Summary" is what I need to create.
    I would very much appreciated if somebody could help.
    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Table Extract based on Font

    Hi,

    Personally I avoid trying to make Excel make decisions based on cell/font colours, backgrounds, Bold, etc. There's just too much area of risk. Someone somewhere will reformat something and screw things up. Always look for a more robust solution.

    In this case one way in C" copied down would be

    Formula: copy to clipboard
    =INDEX(Records!$A$1:$M$20,MATCH(A2,Records!$A:$A,FALSE),MATCH(B2,Records!$2:$2,FALSE))


    Even better would be a restructuring of your data in a 3 column Table for Region, Month, Value.
    You could then use a Pivot Table which opens up all sorts of possibilities for you and is far more efficient for this sort of analysis.
    Last edited by Richard Buttrey; 09-09-2014 at 11:23 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Table Extract based on Font

    Pay attention what Richard has advised you.
    But if you want to stick on this, I think you need a VBA code to achieve this task. Please find the attached sheet to see if this is what you are trying to achieve. Click on the Green Button on the Records Sheet to get the desired output on the Summary Sheet.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Extract data based on month/year to a simple table.
    By maax555 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2014, 09:55 AM
  2. [SOLVED] extract and maintain font color
    By mqcai4613 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-17-2013, 11:43 PM
  3. Extract values from table based on 2 criterias
    By plamenbv in forum Excel General
    Replies: 0
    Last Post: 09-19-2013, 05:09 AM
  4. [SOLVED] Need a lookup to extract data table based on four criteria & override user input
    By Marvelous in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-01-2013, 12:54 PM
  5. Replies: 59
    Last Post: 07-11-2010, 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