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

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
building codes

ResolvedVersion 2003

Grishma has attended:
Excel VBA Intro Intermediate course

Building Codes

Why do I need to create New Codes for Pivot Tables when the Excel can do that anyways

RE: Building Codes

Hi Grishma

Sorry for the delay in answering this question.

In VBA we write code to create a Pivot Table so that we can take full control of the process.

If you only require 1 pivot table then it would be better and quicker to use the normal Excel steps.

By writing the code, as we did in the course, allows us to create multiple and diverse Pivot tables instantly at the touch of a button.

Hope this helps

Carlos

Excel tip:

Calculate difference between two times

For presenting the result in the standard time format (hours : minutes : seconds . Use the subtraction operator (-) to find the difference between times, and the TEXT function to format the returned value to text in a specific number format.

Hours never exceed 24, minutes never exceed 60, and seconds never exceed 60.

=TEXT(B2-A2,"h")
Hours between two times (4)

=TEXT(B2-A2,"h:mm")
Hours and minutes between two times (4:55)

=TEXT(B2-A2,"h:mm:ss")
Hours and seconds between two times (4:55:00)

Where B2 and A2 must hold the end time and start time respectively formatted as a time format

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.