N/A

Status
Not open for further replies.

bohon79

New Member
Joined
Jul 2, 2015
Messages
45
Hello,

I have a code in a cell that looks at another cell and based on what is in there it autofills the cell in. below is the code that currently works:

=INDEX(PERSONNEL!$A$2:$A$20,MATCH(HQS!B6,PERSONNEL!$C$2:$C$20,0))

But when I have nothing in the cell (B6), Cell (A6) comes up with n/a. is there a way to have the cell be blank when there is nothing in Cell B6.

Erick
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
=iferror(index(personnel!$a$2:$a$20,match(hqs!b6,personnel!$c$2:$c$20,0)),"")
=if(b6="","",index(personnel!$a$2:$a$20,match(hqs!b6,personnel!$c$2:$c$20,0)))
 
Upvote 0
Please do not post the same question multiple times. Questions of a duplicate nature will be locked or deleted, per #12 of the Forum Rules and points 6 & 7 of the Forum Use Guidelines.

Any bumps, clarifications, or follow-ups should be posted to the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,829
Messages
6,181,218
Members
453,024
Latest member
Wingit77

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