+ Reply to Thread
Results 1 to 7 of 7

lookup value if it match a criteria.

  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    lookup value if it match a criteria.

    Hi,

    Please can someone help with lookup.

    As its very new thing for me to do lookup like this one.

    I have attached file if you could assist me.

    User enters Date in "Bookings DAY COMPILER" sheet cell F2 and press the buttton.

    Macro looks up the date which user has entered and matches the date in "Booking IN CALENDAR" and bring over column B(time) and C(delivery ref) in "Bookings DAY COMPILER" in B5(Time) and C5(Delivery Ref).

    Please can someone assist me.

    Many Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: lookup value if it match a criteria.

    Try this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: lookup value if it match a criteria.

    Quote Originally Posted by StephenR View Post
    Try this:
    Please Login or Register  to view this content.
    Thankyou for the above code, works great. Could i ask for small favour.
    if i want to extact other columns what part of codeing do i change or add.
    Currently is does column B,C&D and if i want to add column H,K,M&N.

    Once again many thanks.

  4. #4
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: lookup value if it match a criteria.

    Quote Originally Posted by coolhit View Post
    Thankyou for the above code, works great. Could i ask for small favour.
    if i want to extact other columns what part of codeing do i change or add.
    Currently is does column B,C&D and if i want to add column H,K,M&N.

    Once again many thanks.
    PLease could someone assist me with above.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Thumbs up Re: lookup value if it match a criteria.

    Use the OFFSET approach again,

    not tested so resize or offset indexes may be out
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: lookup value if it match a criteria.

    Quote Originally Posted by Andy Pope View Post
    Use the OFFSET approach again,

    not tested so resize or offset indexes may be out
    Please Login or Register  to view this content.
    I tried this didn't work. Does column B,C&D from row 5 but H,K,M:N goes down from the last entry of BCD creating step effect going downwards.

    Any ideas as i am new to resize and offset

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: lookup value if it match a criteria.

    Please Login or Register  to view this content.
    Once column B is populated with data from the first copy the row position is out of sync. So a new object, rngOut, is used to maintain the same output point.

+ 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