+ Reply to Thread
Results 1 to 3 of 3

Need Match(RAND() to ignore empty cells.

  1. #1
    Registered User
    Join Date
    09-24-2015
    Location
    Illinois, Illinois
    MS-Off Ver
    2010
    Posts
    7

    Need Match(RAND() to ignore empty cells.

    Hi there!

    I have a sheet going that has the following cells:


    Screenshot_9.jpg

    Now the idea behind it is that you'll be able to enter the S&D Coat Markings, assign them a percentage and when you reload, the top excel box will display randomly pulled coat markings based on their percentage (or possibility) of happening.

    I got it pulling the random markings, no problem, by using this:

    =INDEX($Q$115:$Q$120,MATCH(RAND(),$S$115:$S$120))

    However, not all the boxes need to be used all the time. But, when you don't have something in all the boxes, this happens:

    Screenshot_10.jpg

    It's including the blank boxes- even when I set their value at 0.00%???

    How do I make it skip those empty boxes, so it only draws information from the ones with text inside of them?

    Thank you in advance!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Need Match(RAND() to ignore empty cells.

    You probably dont need to reload the file for this to update, just press F9 (calc)

    You can probably change the formula to INDEX/SMALL/IF, but can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-24-2015
    Location
    Illinois, Illinois
    MS-Off Ver
    2010
    Posts
    7

    Re: Need Match(RAND() to ignore empty cells.

    I figured it out! :D

    The reason it was counting these cells was because it was counting it as if it had text in it. I cleared the cells completely and copy/pasted the info I needed into the appropriate side instead of typing it and it's working like a charm! :D

+ 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] How to ignore empty cells when I use the MATCH() function for an array
    By alice2011 in forum Excel General
    Replies: 3
    Last Post: 02-15-2015, 12:52 AM
  2. Ignore empty cells
    By nomis65 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2014, 10:13 PM
  3. RAND cells but ignore empty cells with data at the top
    By muffybean in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2012, 03:31 PM
  4. Excel 2007 : Ignore empty cells? How?
    By PA0l0 in forum Excel General
    Replies: 3
    Last Post: 06-02-2011, 07:29 PM
  5. How to ignore empty cells in multiplication
    By bbheli in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 01-30-2011, 10:46 AM
  6. Pie chart ignore empty cells
    By cpopham in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-06-2005, 09:40 AM
  7. [SOLVED] Trendlines to ignore empty cells
    By Hoochi Coochi Man in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 01-14-2005, 10:06 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