Closed Thread
Results 1 to 3 of 3

Holdings checking

  1. #1
    Registered User
    Join Date
    09-14-2008
    Location
    Australia
    Posts
    7

    Holdings checking

    Hi!

    Can you please help to code the following Macros into the attached spreadsheet.

    If record date or payable date is between cell G1 to cell H1, return YES in E1
    From record with a yes in E1, use ex date in B1
    Using exdate in B1, determine if it is between I2 to I3, if so use tab 230608 or if it is within I3 to I4, if so use tab 300608, continue until the last date range
    Do a vlookup in the relevant tab and mark yes if it is in the tab, otherwise no.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Here is one option (see encl. file).

    The logic: =IF(AND(Check1=True;Check2=True);"Yes";"No")
    Check1: OR(AND(C2>=$F$2;C2<=$G$2);AND(D2>=$F$2;D2<=$G$2))
    Check2: ISNUMBER(MATCH(A2;INDIRECT(VLOOKUP(B2;$H$2:$I$27;2)&"!C2:C100");0)))

    Hope this helped
    Ola


    Notes:
    1. The length of the ranges have to be changed to your need.

    2. I wasn't sure if the first and the second check should be in the same formula.
    But it should be no problem to separate them, if needed.

    3. It looked like the sheet could simplified, so I tested to (in a copy)
    * remove col. I
    * move the Weekly summary date range to the top
    * I did not change this but - unless the trailing blanks in the the security code are important, use TRIM()
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi,
    as you haven't reacted to mod's request, I am closing this thread.
    feel free to open a new thread with a more descriptive title
    Cheers

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. write name checking function where case sensitivity does not matter
    By netdude_18 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-23-2008, 01:39 PM
  2. protect contents of cell after checking checkbox
    By carlossaltz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2008, 11:16 AM
  3. Error Checking Code
    By kylegwell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-14-2007, 12:41 PM
  4. Macro Syntax for cell character checking
    By truongn2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2007, 02:44 PM
  5. Checking two cells for zero with =IF function
    By AnthonyB in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-29-2007, 10:15 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