+ Reply to Thread
Results 1 to 6 of 6

Check on value then other if match then show the weight

  1. #1
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Check on value then other if match then show the weight

    Hello,

    Trying to make a formula, what would do the following in the attached file:

    1. Check if AK(Sheet1) = F(Sheet2) if match
    2. Check if AL(Sheet1) = G(Sheet2) if match
    3. Show in BE(Sheet1) the value of P(Sheet2)

    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Check on value then other if match then show the weight

    Sorry the first attachment is without the Sheet2 so please check out the new one.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Check on value then other if match then show the weight

    Try this in cell BE1 on sheet1:

    =IF(AND(AK1=Sheet2!F1,AL1=Sheet2!G1),Sheet2!P1,"")


    Is this what you mean?

    It stays blank as cells AK1 on sheet 1 and F1 on sheet 2 do not match in this instance. But test it on full data and let us know if it works.

    S.

  4. #4
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Check on value then other if match then show the weight

    Doesn't work, the cell BE stays empty.

    Quote Originally Posted by Spencer101 View Post
    Try this in cell BE1 on sheet1:

    =IF(AND(AK1=Sheet2!F1,AL1=Sheet2!G1),Sheet2!P1,"")


    Is this what you mean?

    It stays blank as cells AK1 on sheet 1 and F1 on sheet 2 do not match in this instance. But test it on full data and let us know if it works.

    S.

  5. #5
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Check on value then other if match then show the weight

    That doesn't mean it's not working. Just means that all the matches required are not met.

    As I pointed out, one of the conditions in your original post (1. Check if AK(Sheet1) = F(Sheet2) if match) is not a match, so the blank cell is correct. If these two cells DID match then BE1 would not show as blank.

  6. #6
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Check on value then other if match then show the weight

    Sorry, i was away for some time. I have figured it out. The file i have attached here was example of the original with some data. In the end i got a function like that:

    =INDEX(data!$F$2:$P$60041; MATCH(AK5&AL5;data!$F$2:$F$60041&data!$G$2:$G$60041;0);11)

    Quote Originally Posted by Spencer101 View Post
    That doesn't mean it's not working. Just means that all the matches required are not met.

    As I pointed out, one of the conditions in your original post (1. Check if AK(Sheet1) = F(Sheet2) if match) is not a match, so the blank cell is correct. If these two cells DID match then BE1 would not show as blank.

+ 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