+ Reply to Thread
Results 1 to 2 of 2

UDF - Integer NOT in range

  1. #1
    Registered User
    Join Date
    01-16-2009
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    6

    UDF - Integer NOT in range

    Hi

    I'm trying to create a function that chooses an "available" integer.

    Basically I want a function that returns an integer less than 10, that doesn't appear in the range A1:A10.

    If A1:A10 contained the numbers 1-5 in ascending order, I want this function to return any value within 6-10. If 6 is entered in the range A1:A10 the function returns 7-10 and so forth.

    It should be really simple, but I can't get my head around it. Professor Google isn't very helpful on the subject.

    Any help would be appreciated.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: UDF - Interger NOT in range

    Hi Vetinari,

    Look at the attached with a udf that does what I think you want.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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