+ Reply to Thread
Results 1 to 9 of 9

If Statements using multiple tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    34

    If Statements using multiple tabs

    I'm drawing a blank today on how to create a formula to retrieve back the information that I need. I am going to try to explain this the best that I can.

    Sheet 1 in Column A I have Lease #'s (ranging from 119.1, 122.1, 125.1, 125.5, etc)
    I need a formula to look at Sheet 1 Column A and find it's same Lease # on Sheet 2 in Column A

    then

    I need it to look at Sheet 1 Cell AX3 and find it's match on sheet two in column B for the same Lease # that it has already matched together in step 1 above.

    then

    Once is has found both sets of pairs I need it to return the value from Sheet 2 in column M.

    In other words I'm trying to say....If Sheet 1 A = Sheet 2 A and Sheet 1 B = Sheet 2 B then Sheet 2 C

    Is that possible and does that make sense?

    Thanks! Jennifer
    Last edited by scyllanbay; 12-03-2012 at 05:34 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: If Statements using multiple tabs

    Hi Jennifer,

    Is this what you have in mind?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-13-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: If Statements using multiple tabs

    Does this spreadsheet better explain what I'm hoping to do?

    Thanks so much!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: If Statements using multiple tabs

    Hi Jennifer,

    This is the simplest solution...

    I used a helper column in Sheet 2 to concatenate column A and B, then used the VLOOKUP with concatenated lookup value.

    You can hide the helper column if needed.

    Is this ok?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-13-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: If Statements using multiple tabs

    Wow, I sure can tell it's Friday. Your fix is perfect! I wasn't thinking at all when I looked at it.

    Again, Thank you for the help!

  6. #6
    Registered User
    Join Date
    08-13-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: If Statements using multiple tabs

    Hi.

    Thank you. I might be able to make that work. However, I'm not sure if I"m doing something wrong but I took the formula that you created and copied it down the rest of the cells and i'm just getting a #N/A.

  7. #7
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: If Statements using multiple tabs

    Hi Jennifer,

    Your sheet2 did not contain the other items... you can modify the formula to this to avoid the #N/As

    =IFERROR(VLOOKUP($A4&B$2,Sheet2!$C$3:$D$10,2,0),"")

  8. #8
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: If Statements using multiple tabs

    No problem... TGIF!

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: If Statements using multiple tabs

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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