Consulting

Results 1 to 6 of 6

Thread: Help with lookup formula

  1. #1

    Help with lookup formula

    Can someone help me with formula

    1. Lookup the word "IBQ Credit Card" from the top pic and find it in the bottom pic (Row 19)
    2. Match the date in the top pic (Row 35) with the date in the bottom pic (column B)
    3. Enter all the values in the bottom pic (column E) and enter these value in the top pic (row 42)

    Note: the word "IBQ Credit Card" in the bottom pic can move horizontal so the formula has to be dynamic with looking for this word.

    Thank you for your help.
    Attached Images Attached Images

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,730
    Location
    Attaching a sample workbook with data would make it easier
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    VBAX Expert
    Joined
    May 2016
    Posts
    604
    Location
    Your picture is unreadable, but the way I would do something like that is using the functions Match , Index and Offset, which when combined together are much more flexible than the the lookup functions

  4. #4
    I've attached a booklet.
    Attached Files Attached Files

  5. #5
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Lookup the word "IBQ Credit Card" from the top pic and find it in the bottom pic
    No matter how I tried, I could not find "IBQ Credit Card" in this Row
    Month Snowball Additional American Express Int'l Bank of Qatar

    Match the date in the top pic (Row 35) with the date in the bottom pic (column B)
    I notice that it is possible to match the Serial values of the Dates in Sheet1 to the Serial values in Sheet2.

    I'm not sure how to do what you want, since it is obvious that the attachment is not the same as your actual workbook.

    Further, I assume that you want this to work for many entries.

    Do you want a Macro that will fill in the blanks?
    OR
    Do you want a UDF that you can use in a Formula in Sheet1?

    In either case, we will need an accurate example of the two sheets
    Last edited by SamT; 09-03-2016 at 11:38 AM.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  6. #6
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    maybe, just maybe, in cell D42 of sheet1:
    =INDEX(Sheet2!$A$19:$E$26,MATCH(D$35,Sheet2!$A$19:$A$26,0),MATCH($A42,Sheet 2!$A$19:$E$19,0))
    copy up/down/left/right and around.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •