busted equation

bailey537

Board Regular
Joined
Jun 30, 2008
Messages
65
i am trying to use the following equation

ActiveCell.Formula = "=Vlookup(3,CAdetails,2)& Proper(JOB INPUT!D36) & If(JOB INPUT!E36=0,,UPPER(JOB INPUT!E36))& vlookup(4,CAdetails,2) & PROPER(TEXT(JOB INPUT!C35))& VLOOKUP(4,CAdetails,2) & VLOOKUP(5,CAdetails,2)"


it keep coming up with object-orientated error or application error


could anyone explain if it's something to do with the code or something else

thanks
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,344
Office Version
  1. 365
Platform
  1. Windows
Remove the TEXT part, or add the missing 2nd argument for it.:)
 

Banker1

Active Member
Joined
Mar 10, 2005
Messages
463
at the end of your vlookup you need to put ",0" (Vlookup(3,CAdetails,2,0))
 

Jon von der Heyden

MrExcel MVP, Moderator
Joined
Apr 6, 2004
Messages
10,874
Office Version
  1. 365
Platform
  1. Windows
at the end of your vlookup you need to put ",0" (Vlookup(3,CAdetails,2,0))

...if you want an exact match. Ommit (as you have) to find approximate match if looking up value in a sorted list. :)
 
Last edited:
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,951
Messages
5,834,540
Members
430,295
Latest member
amdis

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
Top