IFS or VLOOKUP #VALUE! Error

shaw600

New Member
Joined
Dec 2, 2016
Messages
9
Hi

I keep getting a #VALUE! error from the formula:

=IFS(M10="Low",VLOOKUP(A10,'Low Prevention Database'!A:C,2,0),M10="Medium",VLOOKUP(A10,'Medium Prevention Database'!A:C,2,0),M10="High",VLOOKUP(A10,'High Prevention Database'!A:C,2,0))

It is looking up a cell that contains writing but keeps returning a #VALUE!.

When I reduced the amount of writing in the cell and it worked but I need it to work with all of the writing in the cell.

I hope that makes sense!

Thank you in advance.

Daniel
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I don't have the IFS function in my versions of Excel so I'm taking a guess.

Instead of: M10="Low"

Try replacing that with:

ISNUMBER(SEARCH("Low",M10))

Do the same for the other variables.
 
Upvote 0
I don't have the IFS function either.

Try:

Code:
=IF(M10="Low",VLOOKUP(A10,'Low Prevention Database'!A:C,2,0),IF(M10="Medium",VLOOKUP(A10,'Medium Prevention Database'!A:C,2,0),IF(M10="High",VLOOKUP(A10,'High Prevention Database'!A:C,2,0),"Error. Value not in Database")))
 
Upvote 0

Forum statistics

Threads
1,215,886
Messages
6,127,585
Members
449,385
Latest member
KMGLarson

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