+ Reply to Thread
Results 1 to 6 of 6

Check value on block

  1. #1
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Check value on block

    Hello all,

    is there a way to look if inserted value is on specific block?

    I mean, i have several number "blocks" (1-99 ; 100-199; 200-299 ....)

    If value is on block1, display msgbox "value found on first block - [1-99] " etc etc

    Hope you can understand me

    See file in attachmente

    P.S. I need this on VBA
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Check value on block

    I am getting an error that my response contains SQL Injection. Anyway, maybe give UDF a try (code is in the attachment).
    Attached Files Attached Files

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Check value on block

    Try this UDF:-
    Enter in "D2" as :- =fdnum(A2,C2)

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Check value on block

    that's exactly what i was asking, although i though i could do it from there.

    See in attach what i really need to do in my project, and hopefully you can help me out
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Check value on block

    Quote Originally Posted by JieJenn View Post
    I am getting an error that my response contains SQL Injection. Anyway, maybe give UDF a try (code is in the attachment).
    Have you seen the new attachment, is there a way to adapt your function to my cost calculation?

  6. #6
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Check value on block

    Hello

    I've tested your UDF and doesn't work, neither JieJenn's neither MickG's UDF

    I need the block to be as in attachment, check and let me know how can i define the BLOCK with [0-0,07[ FOR EXAMple, and test the value 0,07 and 0,071

    Get back to me asap
    Attached Files Attached Files

+ 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. How to check if excel file is Checked Out in SharePoing Check Out, run code, Check In
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2016, 04:36 PM
  2. Finding Vacancy Percentage Month Wise from Check in and Check out Date
    By HemZone in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-29-2015, 10:51 AM
  3. Automatically check one or more check boxes when a parent check box is manually checked
    By Steverizer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2013, 01:56 PM
  4. Replies: 1
    Last Post: 12-14-2012, 10:11 AM
  5. Replies: 5
    Last Post: 10-09-2012, 10:44 AM
  6. Replies: 2
    Last Post: 06-22-2010, 07:55 AM
  7. Macro to check for blank cell entry, copy previous value, and check for duplicates
    By xPunxNotDeadx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:33 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