Explain a formula?

shonu1320

Board Regular
Joined
Mar 10, 2011
Messages
54
Can somebody explain what this formula is doing?

=IF(LEN(E16)>0,IF(E16>(E13*(VLOOKUP($B$3,Data!B:DS,120,0)/260)),E16-(E13*(VLOOKUP($B$3,Data!B:DS,120,0)/260)),"NO"),"")
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Any particular bit you don't understand? If E16 is blank the formula returns null. If E16 is less than or equal to (E13*lookup_value/260) it returns NO. Otherwise it returns E16 less (E13*lookup_value/260).
 
Upvote 0
I just did not know what LEN function does?
It's probably being used to make sure there is an entry in the cell.

However, that's not a very good method to use. You should check that the cell actually contains a number like this..

=IF(COUNT(E16),...

Or

=IF(ISNUMBER(E16),...
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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