VLOOKUP #REF! error

MJ5479

New Member
Joined
Mar 24, 2015
Messages
19
Office Version
  1. 2024
Platform
  1. Windows
I have limited knowledge of excel so I apologize if the question is too simple...

I found a formula online that converts letters into numeric values and then sums them up...

Excel Formula:
=SUM(VLOOKUP(T(IF(1,MID(C3,ROW(INDIRECT("1:"&LEN(C3))),1))),SHEET2!$A$2:$B$29,2,FALSE))

So basically, the formula checks the contents of the cell C3 and if the field is filled with letters formula works great. If the field is empty, I get an #REF! error.

Is there any way to change this formula so that when C3 cell is empty, the return is a blank cell and not an error...

Thank you all in advance...
M.J.
 
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Thank you, I did it previously but it was probably changed because I did a password reset today...

That is also one of the things I didn't take into an account... This worksheet I'm making is going to be shared with broad range of people using different versions of Excel...
 
Upvote 0
Thanks for updating your profile (y)
If it needs to work in earlier version then try
Excel Formula:
=IF(C3="","",SUM(VLOOKUP(T(IF(1,MID(C3,ROW(INDIRECT("1:"&LEN(C3))),1))),Sheet2!$A$2:$B$29,2,FALSE)))
 
Upvote 0
Solution
Thank you, thank you, thank you.... I've just tested it and it works absolutely perfectly...

You saved me so much time...

And also again thank you for pointing out that I have to pay attention to other versions of Excel...

All the best....
M.J.
 
Upvote 0
You're welcome & thanks for the feedback.
 
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