Using IF function to return value matching another value on another sheet

Seanr19871

New Member
Joined
May 14, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi, I have a long list of usernames and password for work in a table on a sheet called PASSWORDS. I've added a drop down list on my dashboard with the name of each of the passwords.
In the cell below the list I want it to show the password that matches the name in the above cell, and the name in the table.
How do I do this for a list of passwords because I know how to do it for a single one (shown below)

IF(R3=Passwords!A2,Passwords!B2,"")

I want it to check the list of password names in the table and show the corresponding password next to it so in the next cell.

How do I do this?

Thanks
Sean
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try this.
Excel Formula:
=IFERROR(INDEX(Passwords!B:B,MATCH(R3,Passwords!A:A,0)),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,638
Messages
6,120,676
Members
448,977
Latest member
moonlight6

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