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

perform calculation if

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Perform calculation if...

Perform calculation if...

ResolvedVersion 2003

Steven has attended:
Excel VBA Intro Intermediate course

Perform calculation if...

What would be the VBA code to perform the following calculation only if the cells referred to contained numbers and to leave the cell in column M blank if one of the cells referred to in the calculation was blank?

Range("M6:M" & FinalRow).FormulaR1C1 = "= (RC[-6]-RC[-3])/(RC[-3])"




RE: Perform calculation if...

Hello Steven

Thank you for your post.

We offer the forum service to all our delegates to answer questions related directly to content of courses they have attended with us.

While we are happy to support and advise our delegates in the manner that the forum was intended, there will be instances where we choose to advise delegates that we can only assist, or continue to assist, in a consultative role which would involve dedicated time from a trainer, and be billable.

This would apply to your post. If you are interested in taking this option forward to resolve any remaining issues with your spreadsheet, please contact our enquiries team to discuss your requirement on phone number.

Kind regards
Amanda

 

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:

Recently used file list

Under the File menu, you may find a list of files at the bottom of the menu. These files represent the most recently used Excel spreadsheets. This file list provides a quick way for you to access your files.

You can disable the file list feature of Excel. This is done by

1. Choose Tools > Options menu. You will see the Options dialog box.
2. Ensure the General tab is selected.
3. Make sure the Recently Used File List check box is cleared.
4. Click on OK.

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.