+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP or functions for autofill of cell based on criterias from different column

  1. #1
    Registered User
    Join Date
    09-24-2018
    Location
    Singapore
    MS-Off Ver
    2017
    Posts
    16

    Exclamation VLOOKUP or functions for autofill of cell based on criterias from different column

    Apologies for the somewhat confusing title. I have attached an excel sheet to depict the example below. Here is what I want to achieve:

    When user enter a new row for equipment plate no and location tag, the bolded number will be auto appear on the old id number column. These bolded numbers matched with their respective new id number.


    User enter A5427H and back cover = excel auto fill 2013


    User enter A5427H and battery box = excel auto fill 2003


    User enter A0237E and back cover = excel auto fill 2023


    These bolded numbers will depend on both equipment plate and location tag. Hence, I have used COUNTA function on column c and d to ensure that old id number and new id number cannot be inserted prior to choosing the equipment plate no and location tag.


    These bolded numbers can be changed. This is for troubleshooting purposes.

    Hope that someone could help me with this. Thanksss.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,998

    Re: VLOOKUP or functions for autofill of cell based on criterias from different column

    In c2, copied down:

    =IFERROR(LOOKUP(2,1/(($B$1:B1=B2)*($E$1:E1=E2)),$D$1:D1),"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    09-24-2018
    Location
    Singapore
    MS-Off Ver
    2017
    Posts
    16

    Re: VLOOKUP or functions for autofill of cell based on criterias from different column

    Quote Originally Posted by Glenn Kennedy View Post
    In c2, copied down:

    =IFERROR(LOOKUP(2,1/(($B$1:B1=B2)*($E$1:E1=E2)),$D$1:D1),"")
    Hi Glenn

    Amazing. Works exactly as per intended!

    However, don't mind just to add on to this thread. As these numbers can be changed, I would like to put conditional formatting by means of making the font colour to be red. As the auto return value is exact, once the user changed it to another value, it will not be exact anymore. I highlighted the whole of column C and inserted this custom formulae:

    =VLOOKUP($C1,$D1,3,FALSE)

    And nothing happened to the font if I changed the numbers to a different value.

    I am not good with excel and hope you can help me out. Thanksss.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,998

    Re: VLOOKUP or functions for autofill of cell based on criterias from different column

    However, don't mind just to add on to this thread. As these numbers can be changed, I would like to put conditional formatting by means of making the font colour to be red. As the auto return value is exact, once the user changed it to another value, it will not be exact anymore. I highlighted the whole of column C and inserted this custom formulae:

    I don't understand.

    Red: which numbers do you mean?

    Orange: the font colour of which column?

    Green: which cell(s) is/are "it"?

    If you want excel to "remember" a value in a cell that you have over-written, it can not do that without VBA. That is a new question and needs a new thread.

  5. #5
    Registered User
    Join Date
    09-24-2018
    Location
    Singapore
    MS-Off Ver
    2017
    Posts
    16

    Re: VLOOKUP or functions for autofill of cell based on criterias from different column

    Quote Originally Posted by Glenn Kennedy View Post
    However, don't mind just to add on to this thread. As these numbers can be changed, I would like to put conditional formatting by means of making the font colour to be red. As the auto return value is exact, once the user changed it to another value, it will not be exact anymore. I highlighted the whole of column C and inserted this custom formulae:

    I don't understand.

    Red: which numbers do you mean?

    Orange: the font colour of which column?

    Green: which cell(s) is/are "it"?

    If you want excel to "remember" a value in a cell that you have over-written, it can not do that without VBA. That is a new question and needs a new thread.
    Hai Glenn. Sorry for the late reply.

    Red: These numbers refer to the numbers that was initially autofilled by the function, but changed by the user. These numbers would be numebrs in column C.
    Orange: The column is column C. This the same column as per above. So basically once the user has changed the number, the new number (the number that the user typed in) will change red.
    Green: These cells are the cells in column C.

    Hhehehe, and yeah its true that I do want excel to 'remember' the value that was overwritten. So knowing that the value is overwritten, the entered value in column C will have a red font colour.

    Noted aboout the VBA option. Thanks for the past replies and providing a solution to my enquiry.

+ 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. Replies: 2
    Last Post: 07-13-2017, 10:33 AM
  2. [SOLVED] Autofill vlookup with 2 criterias
    By dekueb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-09-2017, 03:03 PM
  3. Section Autofill count based on a value of a cell column
    By khhoa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2015, 01:08 PM
  4. VLookup function for Placing set pay amount into column by using 4 criterias
    By AlishaMcD in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-29-2014, 11:25 AM
  5. [SOLVED] Return Column Number Based on Two Criterias
    By taccoo73 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2014, 02:51 PM
  6. VBA Macro to autofill data in column based on value on adjacent cell
    By cazantheman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 02:04 PM
  7. VBA code ,Autofill color of a column based on cell value
    By mubashar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2013, 11:50 AM

Tags for this Thread

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