+ Reply to Thread
Results 1 to 6 of 6

Update the name with the code based on two criteria

  1. #1
    Registered User
    Join Date
    12-09-2020
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    19

    Update the name with the code based on two criteria

    Hello,

    I am looking for a vlookup that looks at two criteria's and populates the code in cell C in the tab 'Input' based on the information shown in the site tab

  2. #2
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Update the name with the code based on two criteria

    I'm a bit confused what you actually want to populate and based on what?

    Have guessed you are trying to populate J2 in "Input" taken from column C of "Site" when columns A and B of "Site" match H2 and I2 of "Input. In which case try:

    =INDEX(Site!C:C,MATCH(H2&"^^"&I2,Site!A:A&"^^"&Site!B:B,0))

  3. #3
    Registered User
    Join Date
    12-09-2020
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Update the name with the code based on two criteria

    I want a formula that looks at the 'Site' tab columns A & B and inputs the Code from cell C from the 'Site' tab into the tab 'Input' cell C based on site and and unique code

  4. #4
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Update the name with the code based on two criteria

    Ok, then try this in C2, and copy down:

    =INDEX(Site!C:C,MATCH(A2&"^^"&B2,Site!A:A&"^^"&Site!B:B,0))

    Basically what I had before but move the references from H and I to A and B.

  5. #5
    Registered User
    Join Date
    12-09-2020
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Update the name with the code based on two criteria

    No does not work

  6. #6
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Update the name with the code based on two criteria

    Could you upload your workbook of it not working, or explain more clearly what is not working about it?

    I used the example sheet you provided and it works for me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find Sheet Names VBA Code update/run criteria
    By SHELTONUNDERDOG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2022, 03:52 PM
  2. [SOLVED] Update cell based on several criteria using VBA
    By rz6657 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-25-2017, 09:42 AM
  3. [SOLVED] Update cell based on several IF criteria
    By rz6657 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-24-2017, 07:41 PM
  4. Status update based on criteria
    By Sanjibghosh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-20-2017, 04:38 AM
  5. VBA to update a row based on a criteria.
    By thomasra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2013, 02:10 PM
  6. Update Masterfile Based on Criteria
    By Sags in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2012, 10:22 AM
  7. Macro code to update Pivot table based on criteria
    By wish2excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-30-2010, 05:44 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