Compare two columns with reference sheet if no values on input sheet result return with available values of reference sheet

Sathish G

New Member
Joined
Aug 16, 2017
Messages
44
Office Version
  1. 2013
Platform
  1. Windows
Hi Everyone,


Hope all doing well and safe!!.

I just need a help for excel formula.

Actually am comparing two values with vlookup with one reference sheet and one input sheet.

Am doing vlookup from my reference sheet towards input sheet. If any value changes done on input that should be updated on reference sheet also in some case if no values provided on input then result should not returns with not empty it should return as value which is available on reference sheet.

Formula which i used : - =VLOOKUP(A3,Input!A:B,2,0)

I have attached sample IMAGES for better understanding.

Thanks a lot in advance.
 

Attachments

  • Sample.JPG
    Sample.JPG
    97.4 KB · Views: 9

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Is this what you mean?

=IF(VLOOKUP(A3,Input!A:B,2,0)="",VLOOKUP(A3,Reference!A:B,2,0),VLOOKUP(A3,Input!A:B,2,0))
 
Upvote 0
Hi Jason,

Could you please help below scenario's as well. Here am applying formula in reference column to get values from input columns.

In case if any names are not there in input sheet it should return values which is available in reference.


=VLOOKUP(A11,A3:B7,2,0)
 

Attachments

  • Sample.JPG
    Sample.JPG
    100.1 KB · Views: 4
Upvote 0
Problems are not easily identifiable from screen captures but I would guess that the error occurs when the name is missing from the input sheet. If that is the case then this should fix it.

=IF(IFERROR(VLOOKUP(A3,Input!A:B,2,0),"")="",VLOOKUP(A3,Reference!A:B,2,0),VLOOKUP(A3,Input!A:B,2,0))
 
Upvote 0

Forum statistics

Threads
1,213,557
Messages
6,114,287
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top