Simple formula

LebD

New Member
Joined
Sep 30, 2021
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi
I am trying to have this formula working with one more criteria. Not sure why I am stuck:, initially this is working
=IFERROR(IF(LEN(VLOOKUP(C4;'Sheet2'!H:BD;5;FALSE))=0;0;VLOOKUP(C4;'Sheet 2'!H:BD;5;FALSE)/100);0)

But I need to add one more criteria, if vlookup returns >100, if true it should show 100 otherwise the rest of the formula above.

it is one more IF criteria to be inserted in the 3rd part of the formula above, theoritically like that but its not working

=IFERROR(IF(LEN(VLOOKUP(C4;'Sheet2'!H:BD;5;FALSE))=0;0;IF(VLOOKUP(C4;'Sheet 2'!H:BD;5;FALSE)/100>100;100;VLOOKUP(C4;'Sheet 2'!H:BD;5;FALSE)/100);0)
 
If vlookup returns -100, result should be zero 0
if vlookup returns nothing (N/A), result should be zero
if it returns 0, result should be zero
if it returns 100 and more , result should be 100
if it returns anything between 1 and 99, result should be equal to return
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Can you please confirm the type of data(Number) or (percentage)
 
Upvote 0
If your values are already percentages, why are you dividing them by 100?
 
Upvote 0
Ok Now it works well

Thank you all

=IFERROR(IF(VLOOKUP(C2;'Sheet'!H:BD;5;0)=0;0;IF(VLOOKUP(C25;'Sheet'!H:BD;5;0)>100;"100%";VLOOKUP(C25;'Sheet'!H:BD;5;0)/100));0)
 
Upvote 0
Solution
Means your data is not in percentage it is just as number in cell
 
Upvote 0
Glad you sorted it & thanks fro the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

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