+ Reply to Thread
Results 1 to 8 of 8

Compare sheet1 and sheet 2 and display the output

  1. #1
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Compare sheet1 and sheet 2 and display the output

    There is 2sheets of excel, in sheet1 it has borrower id and product type column, here I want to compare product type with borrower id (unique)and change product type as per sheet1
    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,984

    Re: Compare sheet1 and sheet 2 and display the output

    What is the expected answer for 908010915??

    If it is a blank (908010915 is not on sheet 1), then try:

    =IFERROR(INDEX(Sheet1!O:O,MATCH(Sheet2!B2,Sheet1!B:B,0)),"")

    in O2 of sheet 2.
    Attached Files Attached Files
    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
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Re: Compare sheet1 and sheet 2 and display the output

    908010915
    908011307
    908013311
    908013601 it want to remain the same whatever it exists already in sheet2 but it shows blank, pls do the change in formula and send again

  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,984
    Quote Originally Posted by maddyrafi1987 View Post
    908010915
    908011307
    908013311
    908013601 it want to remain the same whatever it exists already in sheet2 but it shows blank, pls do the change in formula and send again
    So... what is your expected answer, as requested?

  5. #5
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Re: Compare sheet1 and sheet 2 and display the output

    my expected answer is, in sheet1 this id not available means then in sheet2 it want to remain the same like,
    908010915 sanitation
    908011307 water
    908013311 Water Filter
    908013601 sanitation

  6. #6
    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,984

    Re: Compare sheet1 and sheet 2 and display the output

    OK. You cannot get Excel to "remember" a value in that way. If the ID number is not present, it can ONLY return a blank. To do what you want, you will need VBA. Is that OK? I cannot help you (no good with VBA), but I can move it to the VBA sub-forum where someone else will help. Let me know...

  7. #7
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Re: Compare sheet1 and sheet 2 and display the output

    no, i need in excel only

  8. #8
    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,984

    Re: Compare sheet1 and sheet 2 and display the output

    Then you cannot do it.

+ 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. Sheet1 input to sheet 2 output
    By maddyrafi1987 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 02-17-2018, 08:08 AM
  2. [SOLVED] compare and output data based on cell value in sheet1
    By mathanraj76 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-24-2014, 07:34 AM
  3. [SOLVED] How to keep sheet1(output) active while searching sheet2(data) stop sheet switching
    By khhoa in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-14-2014, 08:18 PM
  4. Compare Sheet1 and Sheet 2 and Remove Matching Records from Sheet1
    By MotoDave in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2013, 12:35 PM
  5. Compare the two columns and display the 2nd column item as output
    By gurum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2013, 07:58 AM
  6. Compare sheet1 row with all the rows with sheet 2
    By ramserp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2010, 01:34 AM
  7. Formula in Sheet1, Output on Sheet2 Sheet 3...
    By uwhuskies in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-04-2007, 07:55 PM

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