Forum Discussion

Gouse shaik's avatar
Gouse shaik
Copper Contributor
Jul 04, 2018
Solved

Excel formula help

Hi sir/Madam,

 

I am really struggling to compare and display the values in excel. 

 

My requirement:  I have excel sheet with two tabs. First tab has two columns A and B. A is having values of incident id and B is having corresponding dates.  In same way Second tab also has two columns A and B . A is having values of incident id and B is having corresponding dates.  Some values of column A of first tab has matches in second tab column A.  So I want to display those matched values of Column A of first and second tabs and their (column A's) corresponding values from column B of both tabs in separate tab in the format as below. I have highlighted I have attached excel spreadsheet. I am really in need of this. It would be appreciated if someone help me on this. Thanks in advance 

 

Display values common in  Column A of First and second tabs (Highlighted in yellow)

Display the column A’s corresponding value in column B of First tab (Highlighted in yellow)

Display the column A’s corresponding value in column B of Second tab (Highlighted in yellow)

INC000018208304

 

4/30/2018 16:30

 

5/1/18 2:00

 

INC000018208291

 

4/30/2018 16:24

 

5/1/18 1:54

 

8 Replies

  • Anonymous's avatar
    Anonymous
    you can use VLOOKUP to bring the values from column B of both the sheets. the formula will throw an error when it cant find match for the given incident number in the second sheet which we will handle by using IFERROR and returning the string "No match" in case of error. so the formula for column B in sampleresultsheet will be:

    =VLOOKUP(A2,'First Sheet'!$A$2:$B$391,2,0)

    and the formula for column C will be:

    =IFERROR(VLOOKUP(A2,'Second sheet'!$A$2:$B$173,2,0),"No match")
    • Gouse shaik's avatar
      Gouse shaik
      Copper Contributor
      Dear Takmil, Really Thanks for your valuable assistance.
    • Gouse shaik's avatar
      Gouse shaik
      Copper Contributor

      Hi Takmil,

       

       

      Really thanks to you for sharing formula. But I have tested them and not working. I have fine tuned my query and posting it here again so that you could understand easily.


      Sheet1 has two columns A,B. Column A has ids and column B has dates of these respective ids.
      Sheet2 has two columns A,B. Column A has ids and column B has dates of these respective ids.

      Few ids in sheet1 and sheet2 are common/same but dates are different. So I want to display those common ids and their dates of sheet1 & 2 in sheet3. Here is sheet3 is expected result.   Here, there is no option to attach excel file, hence I have copied sheet1,2 and sheet3(expected result) as below: 

       Please refer below excel sheets so that you can understand easily my requirement. 

      Below expected result should be displayed in excel sheet3. I have did this result manually as I do not know how to write formula. I request you to write formula and assist me. Thanks in advance
      You can refer attached excel as well. Excel also is having same as per below. 
      Expected Result as below: 

      common in  Column A of First and second tabs
      (Highlighted in yellow in attached excel)
       respective Column B value of first tab
      (Highlighted in yellow in attached excel)
       respective Column B value of second tab
      (Highlighted in yellow in attached excel)
      INC0000182083044/30/2018 16:305/1/18 2:00
      INC0000182082914/30/2018 16:245/1/18 1:54
      INC0000182082874/30/2018 16:235/1/18 1:53
      INC0000182082764/30/2018 16:205/1/18 1:50
      INC0000182082724/30/2018 16:195/1/18 1:49
      INC0000182082694/30/2018 16:185/1/18 1:48
      INC0000182082684/30/2018 16:175/1/18 1:47
      INC0000182082674/30/2018 16:155/1/18 1:45
      INC0000182082644/30/2018 16:145/1/18 1:44
      INC0000182082604/30/2018 16:125/1/18 1:42
      INC0000182082584/30/2018 16:115/1/18 1:41
      INC0000182082574/30/2018 16:105/1/18 1:40
      INC0000182082514/30/2018 16:085/1/18 1:38
      INC0000182082434/30/2018 16:065/1/18 1:36
      INC0000182082424/30/2018 16:055/1/18 1:35
      INC0000182082354/30/2018 16:035/1/18 1:33
      INC0000182082314/30/2018 16:025/1/18 1:32
      INC0000182082284/30/2018 16:005/1/18 1:30
      INC0000182082254/30/2018 15:595/1/18 1:29



      Sheet1:

      COLUMN A              COLUMN B

      INC0000182106045/1/2018 16:37
      INC0000182106025/1/2018 16:35
      INC0000182105965/1/2018 16:33
      INC0000182105905/1/2018 16:29
      INC0000182105875/1/2018 16:27
      INC0000182105835/1/2018 16:26
      INC0000182105785/1/2018 16:24
      INC0000182105705/1/2018 16:17
      INC0000182105655/1/2018 16:15
      INC0000182105635/1/2018 16:14
      INC0000182098265/1/2018 11:11
      INC0000182096415/1/2018 10:14
      INC0000182096195/1/2018 10:06
      INC0000182083044/30/2018 16:30
      INC0000182082934/30/2018 16:25
      INC0000182082914/30/2018 16:24
      INC0000182082874/30/2018 16:23
      INC0000182082764/30/2018 16:20
      INC0000182082724/30/2018 16:19
      INC0000182082694/30/2018 16:18
      INC0000182082684/30/2018 16:17
      INC0000182082674/30/2018 16:15
      INC0000182082644/30/2018 16:14
      INC0000182082604/30/2018 16:12
      INC0000182082584/30/2018 16:11
      INC0000182082574/30/2018 16:10
      INC0000182082514/30/2018 16:08
      INC0000182082434/30/2018 16:06
      INC0000182082424/30/2018 16:05
      INC0000182082354/30/2018 16:03
      INC0000182082314/30/2018 16:02
      INC0000182082284/30/2018 16:00
      INC0000182082254/30/2018 15:59
      INC0000182082214/30/2018 15:58
      INC0000182082194/30/2018 15:56
      INC0000182082164/30/2018 15:54
      INC0000182082144/30/2018 15:53
      INC0000182082084/30/2018 15:52
      INC0000182082044/30/2018 15:50
      INC0000182081984/30/2018 15:48
      INC0000182081934/30/2018 15:47
      INC0000182081874/30/2018 15:45
      INC0000182081844/30/2018 15:44
      INC0000182081774/30/2018 15:42
      INC0000182081754/30/2018 15:40
      INC0000182081714/30/2018 15:38
      INC0000182081654/30/2018 15:37
      INC0000182081614/30/2018 15:35
      INC0000182081584/30/2018 15:34
      INC0000182081544/30/2018 15:32
      INC0000182081494/30/2018 15:30
      INC0000182081464/30/2018 15:29
      INC0000182081434/30/2018 15:27
      INC0000182081394/30/2018 15:26
      INC0000182081314/30/2018 15:24
      INC0000182081284/30/2018 15:22
      INC0000182081234/30/2018 15:20
      INC0000182081164/30/2018 15:19
      INC0000182081124/30/2018 15:18
      INC0000182081024/30/2018 15:16
      INC0000182080924/30/2018 15:14
      INC0000182080884/30/2018 15:13
      INC0000182080824/30/2018 15:11
      INC0000182080724/30/2018 15:07
      INC0000182080494/30/2018 14:56
      INC0000182080444/30/2018 14:54
      INC0000182080084/30/2018 14:30
      INC0000182080044/30/2018 14:28
      INC0000182077094/30/2018 12:34
      INC0000182077014/30/2018 12:32
      INC0000182075704/30/2018 11:48
      INC0000182065934/30/2018 7:00
      INC0000182023894/27/2018 16:10
      INC0000182020774/27/2018 13:54
      INC0000182019714/27/2018 13:17
      INC0000182019684/27/2018 13:15
      INC0000182019634/27/2018 13:13
      INC0000182011144/27/2018 8:40
      INC0000182005964/27/2018 5:00
      INC0000181997384/26/2018 16:47
      INC0000181996574/26/2018 16:05
      INC0000181983644/26/2018 8:47
      INC0000181983624/26/2018 8:46
      INC0000181983594/26/2018 8:46
      INC0000181983574/26/2018 8:44
      INC0000181983524/26/2018 8:42
      INC0000181974224/26/2018 3:05
      INC0000181973974/26/2018 2:54
      INC0000181973814/26/2018 2:45
      INC0000181973544/26/2018 2:33
      INC0000181952914/25/2018 9:37
      INC0000181947424/25/2018 6:49
      INC0000181947374/25/2018 6:47
      INC0000181947354/25/2018 6:46
      INC0000181947324/25/2018 6:44
      INC0000181947284/25/2018 6:43
      INC0000181941714/25/2018 2:42
      INC0000181934644/24/2018 16:02
      INC0000181931894/24/2018 13:54
      INC0000181931734/24/2018 13:49
      INC0000181931354/24/2018 13:37
      INC0000181928104/24/2018 11:43
      INC0000181928064/24/2018 11:41
      INC0000181927994/24/2018 11:39
      INC0000181927724/24/2018 11:29
      INC0000181927684/24/2018 11:29
      INC0000181923954/24/2018 10:01
      INC0000181922924/24/2018 9:37
      INC0000181922824/24/2018 9:34
      INC0000181914014/24/2018 4:35
      INC0000181901174/23/2018 15:04
      INC0000181898354/23/2018 13:18
      INC0000181897534/23/2018 13:00
      INC0000181890394/23/2018 9:15
      INC0000181884954/23/2018 6:42
      INC0000181884204/23/2018 6:07
      INC0000181851824/21/2018 13:55
      INC0000181851744/21/2018 13:44
      INC0000181851714/21/2018 13:39
      INC0000181843654/20/2018 17:02
      INC0000181842214/20/2018 15:15
      INC0000181823824/20/2018 0:59
      INC0000181817994/19/2018 15:48
      INC0000181815554/19/2018 13:50
      INC0000181812464/19/2018 12:06
      INC0000181809314/19/2018 10:52
      INC0000181808054/19/2018 10:25
      INC0000181806524/19/2018 9:47
      INC0000181804914/19/2018 9:06
      INC0000181803274/19/2018 8:24
      INC0000181797974/19/2018 4:25
      INC0000181796784/19/2018 3:24
      INC0000181794984/19/2018 1:48
      INC0000181787024/18/2018 15:57
      INC0000181785434/18/2018 14:49
      INC0000181775164/18/2018 9:24
      INC0000181773134/18/2018 8:41
      INC0000181767244/18/2018 5:00
      INC0000181766014/18/2018 4:04
      INC0000181760864/18/2018 1:38
      INC0000181754804/17/2018 16:02
      INC0000181754724/17/2018 16:01
      INC0000181754684/17/2018 16:00
      INC0000181754664/17/2018 15:59
      INC0000181741854/17/2018 8:57
      INC0000181741114/17/2018 8:37
      INC0000181740584/17/2018 8:15
      INC0000181740524/17/2018 8:13
      INC0000181739704/17/2018 7:52
      INC0000181730594/17/2018 0:51
      INC0000181724734/16/2018 15:56
      INC0000181721314/16/2018 13:41
      INC0000181717814/16/2018 11:44
      INC0000181714794/16/2018 10:27
      INC0000181712504/16/2018 9:30
      INC0000181651844/13/2018 20:24
      INC0000181650104/13/2018 17:07
      INC0000181639724/13/2018 9:49
      INC0000181639124/13/2018 9:29
      INC0000181637594/13/2018 8:45
      INC0000181637474/13/2018 8:42
      INC0000181636384/13/2018 8:18
      INC0000181628224/13/2018 1:52
      INC0000181628144/13/2018 1:47
      INC0000181628094/13/2018 1:43
      INC0000181623684/12/2018 17:15
      INC0000181623654/12/2018 17:09
      INC0000181617574/12/2018 12:30
      INC0000181608504/12/2018 7:55
      INC0000181608454/12/2018 7:52
      INC0000181608434/12/2018 7:50
      INC0000181594044/11/2018 15:54
      INC0000181593664/11/2018 15:37
      INC0000181593114/11/2018 15:11
      INC0000181590434/11/2018 13:17
      INC0000181588954/11/2018 12:23
      INC0000181588904/11/2018 12:22
      INC0000181584984/11/2018 10:26
      INC0000181582204/11/2018 9:16
      INC0000181581604/11/2018 9:00
      INC0000181581124/11/2018 8:46
      INC0000181581064/11/2018 8:45
      INC0000181580994/11/2018 8:44
      INC0000181580934/11/2018 8:42
      INC0000181580804/11/2018 8:40
      INC0000181571654/11/2018 2:30
      INC0000181571404/11/2018 2:12
      INC0000181566374/10/2018 17:14
      INC0000181566024/10/2018 16:57
      INC0000181565174/10/2018 15:52
      INC0000181562594/10/2018 14:06
      INC0000181562034/10/2018 13:47
      INC0000181557074/10/2018 11:07
      INC0000181556644/10/2018 10:54
      INC0000181554514/10/2018 9:49
      INC0000181550144/10/2018 7:40
      INC0000181550074/10/2018 7:38
      INC0000181550024/10/2018 7:36
      INC0000181546384/10/2018 5:05
      INC0000181545164/10/2018 4:09
      INC0000181545144/10/2018 4:08
      INC0000181545094/10/2018 4:06
      INC0000181534934/9/2018 15:15
      INC0000181534904/9/2018 15:14
      INC0000181534874/9/2018 15:13
      INC0000181533154/9/2018 13:59
      INC0000181531424/9/2018 13:01
      INC0000181531394/9/2018 13:00
      INC0000181525904/9/2018 12:44
      INC0000181524224/9/2018 11:43
      INC0000181524174/9/2018 11:40
      INC0000181524084/9/2018 11:37
      INC0000181523984/9/2018 11:35
      INC0000181523704/9/2018 11:28
      INC0000181514434/9/2018 8:17
      INC0000181510014/9/2018 5:33
      INC0000181470704/6/2018 14:06
      INC0000181470414/6/2018 13:59
      INC0000181470364/6/2018 13:57
      INC0000181470344/6/2018 13:57
      INC0000181470284/6/2018 13:55
      INC0000181464214/6/2018 10:21
      INC0000181464134/6/2018 10:20
      INC0000181464054/6/2018 10:18
      INC0000181463954/6/2018 10:16
      INC0000181463894/6/2018 10:13
      INC0000181463444/6/2018 10:01
      INC0000181463234/6/2018 9:53
      INC0000181462554/6/2018 9:33
      INC0000181456544/6/2018 5:24
      INC0000181456364/6/2018 5:19
      INC0000181456214/6/2018 5:14
      INC0000181446914/5/2018 16:47
      INC0000181444744/5/2018 14:58
      INC0000181443794/5/2018 14:25
      INC0000181443754/5/2018 14:24
      INC0000181443724/5/2018 14:23
      INC0000181443664/5/2018 14:22
      INC0000181443624/5/2018 14:20
      INC0000181440244/5/2018 12:21
      INC0000181440234/5/2018 12:19
      INC0000181440214/5/2018 12:18
      INC0000181440164/5/2018 12:17
      INC0000181440094/5/2018 12:14
      INC0000181440024/5/2018 12:09
      INC0000181439964/5/2018 12:08
      INC0000181437424/5/2018 10:51
      INC0000181437314/5/2018 10:49
      INC0000181437284/5/2018 10:48
      INC0000181437194/5/2018 10:46
      INC0000181437004/5/2018 10:41
      INC0000181436914/5/2018 10:39
      INC0000181436834/5/2018 10:37
      INC0000181426194/5/2018 5:11
      INC0000181417124/4/2018 16:56
      INC0000181417104/4/2018 16:54
      INC0000181417094/4/2018 16:53
      INC0000181417074/4/2018 16:52
      INC0000181417054/4/2018 16:51
      INC0000181415554/4/2018 15:46
      INC0000181415434/4/2018 15:38
      INC0000181413454/4/2018 14:50
      INC0000181410314/4/2018 13:48
      INC0000181410104/4/2018 13:43
      INC0000181407914/4/2018 12:44
      INC0000181407824/4/2018 12:41
      INC0000181407734/4/2018 12:39
      INC0000181404134/4/2018 11:03
      INC0000181393824/4/2018 6:12
      INC0000181380514/3/2018 15:39
      INC0000181379304/3/2018 14:50
      INC0000181379264/3/2018 14:50
      INC0000181379214/3/2018 14:48
      INC0000181366824/3/2018 8:45
      INC0000181363274/3/2018 7:01
      INC0000181355424/2/2018 23:59
      INC0000181355274/2/2018 23:47
      INC0000181353174/2/2018 19:08
      INC0000181353164/2/2018 19:06
      INC0000181351614/2/2018 15:06
      INC0000181345124/2/2018 6:58
      INC0000181337924/1/2018 21:45
      INC0000181337904/1/2018 21:43
      INC0000181337864/1/2018 21:39
      INC0000181337844/1/2018 21:38
      INC0000181312723/30/2018 18:55
      INC0000181312553/30/2018 17:55
      INC0000181311803/30/2018 15:44
      INC0000181311793/30/2018 15:41
      INC0000181311783/30/2018 15:39
      INC0000181311773/30/2018 15:37
      INC0000181311763/30/2018 15:32
      INC0000181311733/30/2018 15:29
      INC0000181307973/30/2018 6:51
      INC0000181306033/30/2018 4:08




      Sheet2:

      COLUMN A              COLUMN B

      INC0000182098265/1/18 20:41
      INC0000182096415/1/18 19:44
      INC0000182096195/1/18 19:36
      INC0000182083045/1/18 2:00
      INC0000182082915/1/18 1:54
      INC0000182082875/1/18 1:53
      INC0000182082765/1/18 1:50
      INC0000182082725/1/18 1:49
      INC0000182082695/1/18 1:48
      INC0000182082685/1/18 1:47
      INC0000182082675/1/18 1:45
      INC0000182082645/1/18 1:44
      INC0000182082605/1/18 1:42
      INC0000182082585/1/18 1:41
      INC0000182082575/1/18 1:40
      INC0000182082515/1/18 1:38
      INC0000182082435/1/18 1:36
      INC0000182082425/1/18 1:35
      INC0000182082355/1/18 1:33
      INC0000182082315/1/18 1:32
      INC0000182082285/1/18 1:30
      INC0000182082255/1/18 1:29
      INC0000182082215/1/18 1:28
      INC0000182082195/1/18 1:26
      INC0000182082165/1/18 1:24
      INC0000182082145/1/18 1:23
      INC0000182082085/1/18 1:22
      INC0000182082045/1/18 1:20
      INC0000182081985/1/18 1:18
      INC0000182081935/1/18 1:17
      INC0000182081875/1/18 1:15
      INC0000182081845/1/18 1:14
      INC0000182081775/1/18 1:12
      INC0000182081755/1/18 1:10
      INC0000182081715/1/18 1:08
      INC0000182081655/1/18 1:07
      INC0000182081615/1/18 1:05
      INC0000182081585/1/18 1:04
      INC0000182081545/1/18 1:02
      INC0000182081495/1/18 1:00
      INC0000182081465/1/18 0:59
      INC0000182081435/1/18 0:57
      INC0000182081395/1/18 0:56
      INC0000182081315/1/18 0:54
      INC0000182081285/1/18 0:52
      INC0000182081235/1/18 0:50
      INC0000182081165/1/18 0:49
      INC0000182081125/1/18 0:48
      INC0000182081025/1/18 0:46
      INC0000182080925/1/18 0:44
      INC0000182080885/1/18 0:43
      INC0000182080825/1/18 0:41
      INC0000182080725/1/18 0:37
      INC0000182080495/1/18 0:26
      INC0000182080445/1/18 0:24
      INC0000182080085/1/18 0:00
      INC0000182080044/30/18 23:58
      INC0000182077094/30/18 22:04
      INC0000182077014/30/18 22:02
      INC0000182075704/30/18 21:18
      INC0000182065934/30/18 16:30
      INC0000182023894/28/18 1:40
      INC0000182020774/27/18 23:24
      INC0000182019714/27/18 22:47
      INC0000182019684/27/18 22:45
      INC0000182019634/27/18 22:43
      INC0000182011144/27/18 18:10
      INC0000181983644/26/18 18:17
      INC0000181983624/26/18 18:16
      INC0000181983594/26/18 18:16
      INC0000181983574/26/18 18:14
      INC0000181983524/26/18 18:12
      INC0000181952914/25/18 19:07
      INC0000181947374/25/18 16:17
      INC0000181947354/25/18 16:16
      INC0000181947324/25/18 16:14
      INC0000181947284/25/18 16:13
      INC0000181941714/25/18 12:12
      INC0000181934644/25/18 1:32
      INC0000181931354/24/18 23:07
      INC0000181928104/24/18 21:13
      INC0000181928064/24/18 21:11
      INC0000181927994/24/18 21:09
      INC0000181927724/24/18 20:59
      INC0000181927684/24/18 20:59
      INC0000181923954/24/18 19:31
      INC0000181922924/24/18 19:07
      INC0000181922824/24/18 19:04
      INC0000181914014/24/18 14:05
      INC0000181898354/23/18 22:48
      INC0000181897534/23/18 22:30
      INC0000181890394/23/18 18:45
      INC0000181884954/23/18 16:12
      INC0000181884204/23/18 15:37
      INC0000181851824/21/18 23:25
      INC0000181851714/21/18 23:09
      INC0000181843654/21/18 2:32
      INC0000181823824/20/18 10:29
      INC0000181817994/20/18 1:18
      INC0000181815554/19/18 23:20
      INC0000181812464/19/18 21:36
      INC0000181809314/19/18 20:22
      INC0000181808054/19/18 19:55
      INC0000181806524/19/18 19:17
      INC0000181804914/19/18 18:36
      INC0000181803274/19/18 17:54
      INC0000181797974/19/18 13:55
      INC0000181794984/19/18 11:18
      INC0000181787024/19/18 1:27
      INC0000181785434/19/18 0:19
      INC0000181775164/18/18 18:54
      INC0000181773134/18/18 18:11
      INC0000181767244/18/18 14:30
      INC0000181766014/18/18 13:34
      INC0000181760864/18/18 11:08
      INC0000181754804/18/18 1:32
      INC0000181754724/18/18 1:31
      INC0000181754684/18/18 1:30
      INC0000181754664/18/18 1:29
      INC0000181741114/17/18 18:07
      INC0000181740584/17/18 17:45
      INC0000181740524/17/18 17:43
      INC0000181739704/17/18 17:22
      INC0000181730594/17/18 10:21
      INC0000181724734/17/18 1:26
      INC0000181717814/16/18 21:14
      INC0000181714794/16/18 19:57
      INC0000181628094/13/18 11:13
      INC0000181594044/12/18 1:24
      INC0000181593664/12/18 1:07
      INC0000181593114/12/18 0:41
      INC0000181588954/11/18 21:53
      INC0000181588904/11/18 21:52
      INC0000181584984/11/18 19:56
      INC0000181582204/11/18 18:46
      INC0000181581604/11/18 18:30
      INC0000181580804/11/18 18:10
      INC0000181571404/11/18 11:42
      INC0000181566374/11/18 2:44
      INC0000181562594/10/18 23:36
      INC0000181562034/10/18 23:17
      INC0000181557074/10/18 20:37
      INC0000181554514/10/18 19:19
      INC0000181546384/10/18 14:35
      INC0000181545144/10/18 13:38
      INC0000181545094/10/18 13:36
      INC0000181534934/10/18 0:45
      INC0000181534874/10/18 0:43
      INC0000181531424/9/18 22:31
      INC0000181531394/9/18 22:30
      INC0000181525904/9/18 22:14
      INC0000181524224/9/18 21:13
      INC0000181524174/9/18 21:10
      INC0000181524084/9/18 21:07
      INC0000181523984/9/18 21:05
      INC0000181523704/9/18 20:58
      INC0000181514434/9/18 17:47
      INC0000181470344/6/18 23:27
      INC0000181456544/6/18 14:54
      INC0000181456364/6/18 14:49
      INC0000181456214/6/18 14:44
      INC0000181446914/6/18 2:17
      INC0000181437314/5/18 20:19
      INC0000181366824/3/18 18:15
      INC0000181345124/2/18 16:28
      INC0000181337904/2/18 7:13
      INC0000181337864/2/18 7:09
      INC0000181337844/2/18 7:08
      INC0000181311803/31/18 1:14
      INC0000181311793/31/18 1:11
      INC0000181311783/31/18 1:09
      INC0000181311763/31/18 1:02

Resources