vba formula

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

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA Formula

VBA Formula

resolvedResolved · Medium Priority · Version 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:

How to select certain data in an Excel 2010 workbook

If you want to select the correct data set in a page full of data, the most accurate and efficient way of doing this is to use the ''Shift and Click'' technique.

For example: If you want to select all data in cells A2 to E10, then click on cell A2, hold down the Shift key and click on cell E10 and all the data you want to see is highlighted.

Keep holding down the Shift key and you can move from cell E10 to any other cell in the spreadsheet.

View all Excel hints and tips


Server loaded in 0.09 secs.