+ Reply to Thread
Results 1 to 3 of 3

Create named range for chart by excluding certain rows

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2007
    Posts
    6

    Create named range for chart by excluding certain rows

    I need to create a named range to be used as chart data. But the named range should not include rows which contain specific text. An example given below:
    COL A COL B

    APPLE 200
    ORANGE 300
    MANGO 100
    PINAPPLE 200
    APPLE 350
    MANGO 500

    For example, the named range (containing A1:B6) should exclude all rows where the text in column A contains the name APPLE. Difficult to hide the rows as the data will be updated daily.

    Any help would be appreciated.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,606

    Re: Create named range for chart by excluding certain rows

    Try for example such names:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then write your data somewhere in columns A and B (within first 50 rows) and select for instannce D5:D14 and (having this whole range selected) insert array formula*
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and similar for whole range E5:E14 (also array formula)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    see attached file

    *...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    10-15-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Create named range for chart by excluding certain rows

    Thanks Kaper. Much appreciated.

+ 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] Create a list of uppercase data from a range excluding blanks and errors
    By PAexcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-17-2014, 01:32 PM
  2. Count Days EXCLUDING ONLY Sundays and a named range for Holidays
    By Seaplane Jack in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-14-2014, 05:03 PM
  3. Replies: 4
    Last Post: 01-11-2014, 08:06 AM
  4. Replies: 1
    Last Post: 11-28-2013, 05:38 AM
  5. [SOLVED] VBA for selecting a range excluding the first and last rows.
    By Ashwin Sundarajan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2012, 06:43 PM
  6. [SOLVED] Display range excluding hidden rows in
    By jmethejedi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2012, 07:06 PM
  7. Create named range
    By Matee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2006, 10:45 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