+ Reply to Thread
Results 1 to 4 of 4

Validate / insert value based on another sheet of excel

  1. #1
    Registered User
    Join Date
    05-14-2021
    Location
    MUMBAI
    MS-Off Ver
    2007
    Posts
    14

    Validate / insert value based on another sheet of excel

    hi,
    I want master sheet blank column to be updated by the data given in ADG sheet.
    And in ADG sheet, Name(Column B) to be updated by Mastersheet "Name" column with reference of "Reference id" of ADG sheet . If there is any mismatch in column B (name) & C (name2) in ADG sheet ,Cells of column C gets highlighted with different color.

    and last can I get all the data automatically in MDG sheet with reference of master sheet if i enter MDG in Row b2 of MDG sheet..
    I ha posted the same problem on Mrexcel forum but i did not find that forum useful.

    thanks in advance
    Attached Files Attached Files
    Last edited by COOL_GAVI; 05-18-2021 at 11:41 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Validate / insert value based on another sheet of excel

    Hello COOL_GAVI and Welcome to Excel Forum.
    As to the request in the first paragraph:
    On the master sheet:
    Paste the following into cell D2 and drag the fill handle down and over to cell F16: =INDEX(ADG!E$3:E$17,MATCH($C2,ADG!$D$3:$D$17,0))
    On the ADG sheet:
    Paste the following into cell B3 and copy down: =INDEX('MASTER SHEET'!B$2:B$16,MATCH(D3,'MASTER SHEET'!C$2:C$16,0))
    Select cells C3:C17 and apply the following formula as a conditional formatting rule: =C3<>B3
    As to the second paragraph, I am not sure that I understand what is meant by: "if i enter MDG in Row b2 of MDG sheet".
    I am assuming that it means that if MDG is in cell B1 then only data matching Ref. Code should be displayed.
    If that is correct then paste the following array entered formula into cell B3 and after activating**, drag the fill handle over and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    **Array formulas are not activated in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    05-14-2021
    Location
    MUMBAI
    MS-Off Ver
    2007
    Posts
    14

    Re: Validate / insert value based on another sheet of excel

    thankyou JeteMc. You are a genius. I am sorry for the late reply.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Validate / insert value based on another sheet of excel

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Insert rows based on content on other sheet
    By chiryaaa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-31-2018, 11:19 AM
  2. Macro insert multiple sheet and insert age band based on numbers
    By saravanan1981 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-01-2017, 01:47 PM
  3. insert a value in a cell based on certain criteria in an attendance excel sheet
    By shahabm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2015, 08:24 AM
  4. VBA to insert row based on the cell value in another sheet
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-21-2014, 11:42 PM
  5. Compare and validate one column in one sheet with 2 different columns in other sheet
    By prasanna ponnaganti in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-24-2014, 02:20 PM
  6. Validate two fields when one field you need a formula to validate
    By cmwilbur in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-29-2010, 11:32 AM
  7. Insert rows into new sheet based on value in 1st sheet
    By cpyter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2010, 08:47 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