This UDF should do the trick:-
For Data in "A1" enter function as:- =nfil(A1)
To Save and Run UDF:-
Copy Function from Thread
In Your Data sheet , Click "Alt+F11",:- Vb Window appears.
From the VBWindow toolbar, Click "Insert" ,"Module":- New VBwindow appears .
Paste Code into this window.
Close Vbwindow.
In sheet, Add the "function" in a cell as :- =nfil(A1)
NB:- Once you've added the first bracket you can select the range from the sheet
Then click "Enter"
The cell should now show the result.
Regards Mick
Bookmarks