Hi all,
I am currently using this formula:
Can this be changed to a VLOOKUP formula and keep the same results.![]()
Please Login or Register to view this content.
As always, You help is greatly appreciated
regards
Jeremy
Hi all,
I am currently using this formula:
Can this be changed to a VLOOKUP formula and keep the same results.![]()
Please Login or Register to view this content.
As always, You help is greatly appreciated
regards
Jeremy
Last edited by JRidge; 07-09-2014 at 11:19 AM.
VLOOKUP will return error if no matching is found. You can mask the error using IFERROR like below
Formula:
Please Login or Register to view this content.
________________________________________________________
If your problem is solved, update the thread as SOLVED: Go to the top of the first post-Select Thread Tools-Select Mark thread as Solved OR - Go to the first post - Click edit- Click Advance- Just below the word "Title:" you will see a dropdown with the word No prefix.- Change to Solve- Click Save.
Show your gratitude to the person who helped you solving your problem by clicking on star button at the bottom of such post.
'![]()
Please Login or Register to view this content.
try above one
Hi and Thank You Both,
When i put this in my VBA script and run it, it fill the cells ok but then comes up with the following err.
My Code:
The Error i get is:![]()
Please Login or Register to view this content.
Laufzeitfehler 1004
Anwendungs- oder objektdefinierter Fehler
Any Ideas
Last edited by JRidge; 07-09-2014 at 10:09 AM.
JRidge, you should have mentioned that you are going to use this in VBA
![]()
Please Login or Register to view this content.
Hi hari.
SorryShould have mentioned that..
Ok that works fine except all the cells that have nothing in now have 0 in... I need them blank !!
Any Ideas
I get blanks bud. Can you share your workbook?
I Definatly get all zeros where cells are empty
Bit Complicated to use....
The piece of code is used in the "MitArbeiter Zuweisen" Userform, "Save" Button
JRidge, as I said VLOOKUP will return error only if it could not find what you are looking for. In your workbook, the date you are looking for is found and VLOOKUP returned the 3rd column value which is 0. No problem with the formula.
If you want the 0s to blank. You have to use IF.
Then i go back to my IF(VLOOKUP) version..
Thanks for your help.
Regards
Jeremy
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks