+ Reply to Thread
Results 1 to 8 of 8

Select range containing only values not formulas

  1. #1
    Registered User
    Join Date
    11-07-2016
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Select range containing only values not formulas

    Hi guys,

    I've tried googling this and come damn close to a solution but can't quite work it out.

    I've got a table. Some cells contain formulas which will either return a "blank" or a value depending on whats in another cell.

    I want to be able to select and copy only the cells that contain values and not cells that are returing blanks.

    Hopefully, the attached spreadsheet will make things clear.

    Many thanks in advance to anyone who can help a newbie.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Select range containing only values not formulas

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-07-2016
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Re: Select range containing only values not formulas

    Hi AB33,

    Thanks for the quick reply.

    Thats not quite what I'm after.

    To clarify. I want to end up with the range A1:C5 selected where as your code only selects data in column C. At the moment my original code is selecting A1:C10 because it's also selecting cells with formulas in but I don't want it to do this.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Select range containing only values not formulas

    There is not direct function, but can go around way.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-07-2016
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Re: Select range containing only values not formulas

    Perfect!

    Thank you

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select range containing only values not formulas

    Does this help?

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-07-2016
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Re: Select range containing only values not formulas

    Thanks John, that works great too!

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select range containing only values not formulas

    You're welcome. Glad to help out.

+ 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] Vlookup (but select range based on values)
    By learnall18 in forum Excel Formulas & Functions
    Replies: 31
    Last Post: 05-30-2016, 10:41 AM
  2. Replies: 5
    Last Post: 04-20-2014, 08:39 PM
  3. Replies: 2
    Last Post: 04-04-2013, 02:12 PM
  4. Use Cell Values to define and select a range
    By WadeLair in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-19-2012, 05:18 PM
  5. Replies: 3
    Last Post: 02-26-2012, 03:48 AM
  6. Replies: 9
    Last Post: 01-26-2011, 08:46 AM
  7. Select range -- convert formulas to values
    By Johnny in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2005, 12:05 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