+ Reply to Thread
Results 1 to 3 of 3

How can I count the number of specific shapes in excel

  1. #1
    Registered User
    Join Date
    10-22-2017
    Location
    Malaysia
    MS-Off Ver
    Microsoft Excel
    Posts
    14

    How can I count the number of specific shapes in excel

    Greetings,

    I have searched on Google but I still cannot find a solution. I am looking for some VBA code to count on different shape in different color in excel.

    Example: I have 5 rectangle shapes and 3 square shapes in sheet1, I need a vba code for auto calculate the rectangle shapes when I color 2 in yellow, 3 in blue and the square shapes 1 in pink, 2 in yellow which the number will appear in cell A1 (Rectangle in yellow color), A2 (Rectangle in blue color), B1 (square in pink color), B2 (square in yellow color).

    Thanking in advance.
    Wiz Lee
    Attached Files Attached Files
    Last edited by Wizlee; 11-28-2017 at 05:27 PM.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: How can I count the number of specific shapes in excel

    Hi Wizlee - We really need to see the sheet in question, as shapes are usually referenced by name. Could you upload that part of your workbook?
    Please remove any sensitive or extraneous info.
    Try to preserve the original layout so our solutions fit your workbook.
    Provide “realistic” data. Include any variations the code or formula must address.
    IMPORTANT: Simulate some results to demonstrate what you want.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now click Browse, find your file, then click Upload. Simple!
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Registered User
    Join Date
    10-22-2017
    Location
    Malaysia
    MS-Off Ver
    Microsoft Excel
    Posts
    14

    Re: How can I count the number of specific shapes in excel

    Thank you leelnich, the excel file upload successful
    My code only can count the color. I need it justify the color in different shape.

    Please Login or Register  to view this content.
    Last edited by Wizlee; 11-28-2017 at 05:37 PM.

+ 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] Deleting specific shapes not all in excel - Macro
    By Mhay5656 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2017, 11:10 PM
  2. [SOLVED] Formula to count the total number of a specific grade from a specific class
    By edmund588 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2017, 10:06 AM
  3. VB Excel, Count shapes with same color
    By ooitzechyi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2016, 12:33 AM
  4. [SOLVED] Function possible for Using specific number to count other specific numbers total ?
    By Karnik in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-02-2015, 03:35 AM
  5. Replies: 2
    Last Post: 12-17-2013, 06:30 AM
  6. [SOLVED] Can Excel do calculations ie count number of .xlsx files in a specific folder on pc
    By blacktie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-19-2013, 06:13 AM
  7. [SOLVED] Group Specific Shapes Excel VBA
    By Ganesh7299 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2012, 02:26 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