LOOKUP and IFERROR Question

JudithP

New Member
Joined
Jun 19, 2017
Messages
5
Hi Excel Community,
My function is set to not count any "N/As" but it's not working. N/As are being counted as 3. The likert scale of 3 should only be returned when "influential" is stated in the column.

Here is the function I typed in:

=IFERROR(LOOKUP(AQ8,{"Definitive","Influential","Not Influential","Somewhat Influential"},{4,3,1,2}),"")

If anyone can help, it would be much appreciated.
 

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.
Re: HELP! LOOKUP and IFERROR Question

Hi Excel Community,
My function is set to not count any "N/As" but it's not working. N/As are being counted as 3. The likert scale of 3 should only be returned when "influential" is stated in the column.

Here is the function I typed in:

=IFERROR(LOOKUP(AQ8,{"Definitive","Influential","Not Influential","Somewhat Influential"},{4,3,1,2}),"")

If anyone can help, it would be much appreciated.

Welcome to the board. Could you post a small sample of data and expected results? Are the strings in the lookup array results of formulas? And what exactly is in AQ8?
 
Last edited:
Upvote 0
Re: HELP! LOOKUP and IFERROR Question

Here is the sample I generated and all seems to be working as intended...

Formula in B2 and copied down: =IFERROR(LOOKUP(A2,{"Definitive","Influential","Not Influential","Somewhat Influential"},{4,3,1,2}),"")
Formula in C2 and copied down: =LOOKUP(A2,{"Definitive","Influential","Not Influential","Somewhat Influential"},{4,3,1,2})

The "#N/A" in A5 was typed manually.

A
B
C
1
Definitive
4
4
2
Influential
3
3
3
Not Influential
1
1
4
Somewhat Influential
2
2
5
#N/A
#N/A

<tbody>
</tbody>
 
Last edited:
Upvote 0
Re: HELP! LOOKUP and IFERROR Question

Agree that it is hard to troubleshoot with out seeing some related data?
 
Upvote 0
Re: HELP! LOOKUP and IFERROR Question

Agree that it is hard to troubleshoot with out seeing some related data?

Hi Everyone,
Thank you for responding so quickly. Here is a sample of my data set. I'm trying to use the formula to make the texts into a number value. If you can see below N/A becomes 3. 3 should only be inserted when "influential" is mentioned. This affects my average.
I hope this helps and y'all can provide some feedback.
Column 1 column 2
Somewhat Influential2
Somewhat Influential2
Influential3
N/A3

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Re: HELP! LOOKUP and IFERROR Question

Im not following what the problem is?
using your formula...
=IFERROR(LOOKUP(A2,{"Definitive","Influential","Not Influential","Somewhat Influential"},{4,3,1,2}),"")
gives a "" for a non-match? Is that not what you wanted?
 
Upvote 0
Re: HELP! LOOKUP and IFERROR Question

hmm maybe if you swap the criteria around?
=IFERROR(LOOKUP(A2,{"Definitive","Influential","Somewhat Influential","Not Influential"},{4,3,2,1}),"")
Not sure that will change anything though
 
Upvote 0
Re: HELP! LOOKUP and IFERROR Question

Hi Fdibbins,
In short, N/A becomes 3. It shouldn't be counted as 3. 3 means "influential". I changed the word influnteial into 3 because I need to find the average responses. The data is from a survey.
 
Upvote 0
Re: HELP! LOOKUP and IFERROR Question

Hi Fdibbins,
In short, N/A becomes 3. It shouldn't be counted as 3. 3 means "influential". I changed the word influnteial into 3 because I need to find the average responses. The data is from a survey.

I see what is happening. I can't tell you why the Lookup is treating "N/A" as a match or near match for "Not Influential", but it's not the error value "#N/A" either.

Try this:

=IFERROR(IF(A2<>"N/A",LOOKUP(A2,{"Definitive","Influential","Not Influential","Somewhat Influential"},{4,3,1,2}),""),"")
 
Upvote 0

Forum statistics

Threads
1,216,473
Messages
6,130,838
Members
449,597
Latest member
buikhanhsang

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