Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba formula

ResolvedVersion 2016

VBA Formula

Hello
I want to enter this formula in VBA but I'm not sure how to do it:

IFERROR(IF(BQ4="Y",CE4-200,IF(ISBLANK(BG4),BF4+VLOOKUP(AO4,AWLEAD,2,FALSE),BG4+VLOOKUP(AO4,AWLEAD,2,FALSE))),"")

Thank you
Yiota

RE: VBA Formula

Hi Yiota

This is a good article on the Microsoft site for using worksheet functions withing VBA.

https://docs.microsoft.com/en-us/office/vba/excel/concepts/events-worksheetfunctions-shapes/using-excel-worksheet-functions-in-visual-basic

I hope this answers your question, if not please get back in touch.

Kind regards

Dennis

Thu 2 Apr 2020: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Wrapping Text in a Cell in an Excel 2010 Workbook

When you have a lot of text you want to put in a particular cell but you can't decrease the font size to fit because the text will then become ineligible, then manually wrap the text in a cell by simply pressing ALT+ENTER.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.