+ Reply to Thread
Results 1 to 16 of 16

Convert Boolean Array to an Integer Array

Hybrid View

  1. #1
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Convert Boolean Array to an Integer Array

    I'm suggesting that you reference the worksheet cells only once. Get both the boolean and the numeric array with one range reference.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  2. #2
    Forum Contributor
    Join Date
    07-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    476

    Re: Convert Boolean Array to an Integer Array

    Gotchya, I see what you're saying, problem is the range that I initially pull in has varying data types not just boolean. So for instance I'll grab all the data from a work sheet and then just need to summarize it in different ways based on other inputs or limit inputs in other areas in the workbook.

  3. #3
    Forum Contributor
    Join Date
    07-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    476

    Re: Convert Boolean Array to an Integer Array

    So right now it really looks the take the VBA generated Boolean array and pushing it to a named range and then evaluating that named range into the VBA array and then deleting the named range is the most dynamic (non-looping) way of conversion. The Join * Evaluate mechanism fails when you have just one element, so you'd have to write a condition. but if I knew there would always be >1 Join * Evaluate seems pretty awesome

+ 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. Getting negatives (-1) in the out put
    By kasi.maddula in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-30-2014, 06:21 AM
  2. Sum Negatives into next Positive
    By ScooterNM5 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-05-2010, 07:01 AM
  3. formula to allow only negatives
    By Jack 42 in forum Excel General
    Replies: 8
    Last Post: 05-04-2007, 01:58 PM
  4. [SOLVED] Positives and Negatives
    By Niagera College Student in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2005, 06:05 PM
  5. [SOLVED] No negatives
    By PCOR in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2005, 03:06 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