+ Reply to Thread
Results 1 to 13 of 13

Search For Array Formulas by Cell Reference

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Search For Array Formulas by Cell Reference

    Dear All,

    Am in need to find every array formula cell references in a large workbook.

    Seems the "find tab does not recognize the { in an array formula.

    Does any one have any suggestion on how to find all array formulas by cell reference?

    Thanks and regards John

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Search For Array Formulas by Cell Reference

    This will return you TRUE/FALSE for specific cell if it contains array:

    Please Login or Register  to view this content.
    Similliary you can perform same test for each cell.

  3. #3
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Re: Search For Array Formulas by Cell Reference

    Hi Zbor,

    Thanks, but not so practical as it would be no different from looking manually at each cell.

    Any other suggestions?

    Regards John

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Search For Array Formulas by Cell Reference

    The point is in .HasArray not Msgbox

    And then you can do whatever you want with it.
    Highligh,
    extract to some sheet
    etc

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Search For Array Formulas by Cell Reference

    You have to loop through each formula cells and use zbor method to highlight the array formula cells

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Re: Search For Array Formulas by Cell Reference

    Hi Sixthsense,

    Thanks for your response.

    Let me set up your VBA in a simple spreadsheet and test it.

    Regards John

  7. #7
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Re: Search For Array Formulas by Cell Reference

    Hi,

    Definitely works, thanks I could have never written a macro to do that.

    Will try and adapt it to look at every worksheet in the workbook.

    Kindest regards John

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Search For Array Formulas by Cell Reference

    Quote Originally Posted by John Vieren View Post
    Will try and adapt it to look at every worksheet in the workbook.
    Added another loop to do the same task on all sheets of that workbook

    Try the below code

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Re: Search For Array Formulas by Cell Reference

    Hi SixthSense,

    Much more elegant than I came up with.

    Will go with your code

    Thanks you make me humble, John

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Search For Array Formulas by Cell Reference

    Sixthsense
    I think you need to 'reset' colors at the start...
    In case user remove formula at some point

  11. #11
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Search For Array Formulas by Cell Reference

    Sixthsense
    I think you need to 'reset' colors at the start...
    In case user remove formula at some point

  12. #12
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Re: Search For Array Formulas by Cell Reference

    Hi,

    Seems the multiple worksheet code above is not working beyond the first worksheet, not sure why.

    The code I ended up with noted below in case anyone is interested.

    Once again thanks for all the help, regards John

    Please Login or Register  to view this content.

  13. #13
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Search For Array Formulas by Cell Reference

    To fix code in post #8 change
    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    Alf

+ 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. Array/Index/Match/small formulas- creating a quick search
    By lreed in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-25-2014, 06:06 PM
  2. Replies: 0
    Last Post: 08-01-2013, 04:26 PM
  3. [SOLVED] Dynamic Search function using array formulas
    By adelcap in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2012, 05:46 AM
  4. Array Formulas = Circular Reference Error?
    By tekman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-31-2011, 07:08 PM
  5. Replies: 2
    Last Post: 12-18-2009, 10:59 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