perform calculation if

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

Perform calculation if...

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

Page Break Preview in Excel 2010 (Hint/tip)

If you select View then Workbook Views then Page Break Preview, you will be able to view how your Excel spreadsheet will be split across multiple pages when printed. Even better, you can also drag a page break to a new place. Excel will then scale down your entire worksheet to fit the information you want on the pages you want.

View all Excel hints and tips


Server loaded in 0.07 secs.