IF Statement problem

JamieDI

New Member
Joined
Jan 16, 2012
Messages
10
Hi All

Having a brain fade, simply put if my formula returns a number >= 4 I want to make it 3, if its not I want to return the native value. Formula below.

=IF((IFERROR(VLOOKUP($B7,'SharePoint Data SHC'!$B:$GB,Q$4,FALSE),0))>=4,3,IFERROR(VLOOKUP($B7,'SharePoint Data SHC'!$B:$GB,Q$4,FALSE),0))

This should return a score of 1 instead is forced to the value 3.

Any help greatly appreciated.
 
How about

=IFERROR(IF(VLOOKUP($B7,'SharePoint Data SHC'!$B:$GB,Q$4,FALSE)>=4,3,(VLOOKUP($B7,'SharePoint Data SHC'!$B:$GB,Q$4,FALSE))),"")<strike></strike>
 
Upvote 0
Hi thanks for helping still returns the 3 instead of the 1 don't know why its not working.......

This is the rule I am trying to apply on a 5 point scale - "Move all responses of 4 & 5 to 3 else return the original score"
 
Last edited:
Upvote 0
Is Q$4 definitely correct as that would only refer to a single cell rather than a column within your range. If the lookup value is anywhere in column Q then you would need to change it to 16 as that would be the 16th column along within the range $B:$GB.

=IFERROR(IF(VLOOKUP($B7,'SharePoint Data SHC'!$B:$GB,16,FALSE)>=4,3,(VLOOKUP($B7,'SharePoint Data SHC'!$B:$GB,16,FALSE))),"")

Failing that can you send a sample through?
 
Upvote 0

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