Excel Expert page contents

XLXpart

Microsoft Excel is one of the Best application provided within Msoffice suite. Excel is very popular software among Corporate Sector. We have gained some really fantastic experience. Believe us it is very wonderful application and you will really enjoy using it. This blog is trying to convey some of its Excel's Dynamic Functions, Versatile Functionality, Flexibilities and some fun tricks. We shall also try to resolve your queries.

Search Here

Loading

12/30/09

Limits in Excel.

Worksheet and workbook specifications
  •  Open workbooks Limited by available memory and system resources
  • Worksheet size 65,536 rows by 256 columns
  • Column width 255 characters
  • Row height 409 points
  • Page breaks 1000 horizontal and vertical
  • Length of cell contents (text) 32,767 characters. Only 1,024 display in a cell; all 32,767 display in the formula bar.
  • Sheets in a workbook Limited by available memory (default is 3 sheets)
  • Colors in a workbook 56
  • Cell styles in a workbook 4,000
  • Named views (view: A set of display and print settings that you can name and apply to a workbook. You can create more than one view of the same workbook without saving separate copies of the workbook.) in a workbook Limited by available memory
  • Custom number formats Between 200 and 250, depending on the language version of Excel you have installed.
  • Names in a workbook Limited by available memory
  • Windows in a workbook Limited by system resources
  • Panes in a window 4
  • Linked sheets Limited by available memory
  • Scenarios (scenario: A named set of input values that you can substitute in a worksheet model.) Limited by available memory; a summary report shows only the first 251 scenarios
  • Changing cells in a scenario 32
  • Adjustable cells in Solver 200
  • Custom functions Limited by available memory
  • Zoom range 10 percent to 400 percent
  • Reports Limited by available memory
  • Sort references 3 in a single sort; unlimited when using sequential sorts
  • Undo levels 16
  • Fields in a data form 32
  • Custom toolbars in a workbook Limited by available memory
  • Custom toolbar buttons Limited by available memory
Calculation specifications
  • Number precision 15 digits
  • Largest number allowed to be typed into a cell 9.99999999999999E+307
  • Largest allowed positive number 1.79769313486231E+308
  • Smallest allowed negative number -2.2251E-308
  • Smallest allowed positive number 2.229E-308
  • Largest allowed negative number -1E-307
  • Length of formula contents 1,024 characters
  • Iterations 32,767
  • Worksheet arrays Limited by available memory. Also, arrays cannot refer to entire columns. For example, an array cannot refer to the entire column C:C or to the range C1:C65536. However, an array can refer to the range C1:D65535 because the range is one row short of the maximum worksheet size and does not include the entire C or D column.
  • Selected ranges 2,048
  • Arguments in a function 30
  • Nested levels of functions 7
  • Number of available worksheet functions 329
  • Earliest date allowed for calculation January 1, 1900 (January 1, 1904, if 1904 date system is used)
  • Latest date allowed for calculation December 31, 9999
  • Largest amount of time that can be entered 9999
Charts linked to a worksheet Limited by available memory
  • Worksheets referred to by a chart 255
  • Data series (data series: Related data points that are plotted in a chart. Each data series in a chart has a unique color or pattern and is represented in the chart legend. You can plot one or more data series in a chart. Pie charts have only one data series.) in one chart 255
  • Data points (data points: Individual values that are plotted in a chart. Related data points make up a data series. Data points are represented by bars, columns, lines, slices, dots, and other shapes. These shapes are called data markers.) in a data series for 2-D charts 32,000  
  • Data points in a data series for 3-D charts 4,000  
  • Data points for all data series in one chart 256,000 
  • Line styles 8  
  • Line weights 4 
  • Area patterns (screen display) 18  
  • Total area pattern and color combinations (color display) 56,448 
  • Pattern and color combinations (color printer) 56,448 (the actual number depends on your printer and its software)  
  • Page fields (page field: A field that's assigned to a page orientation in a PivotTable or PivotChart report. You can either display a summary of all items in a page field, or display one item at a time, which filters out the data for all other items.) in a PivotChart report (PivotChart report: A chart that provides interactive analysis of data, like a PivotTable report. You can change views of data, see different levels of detail, or reorganize the chart layout by dragging fields and by showing or hiding items in fields.) 256 (may be limited by available memory)  
  • Data fields (data field: A field from a source list, table, or database that contains data that is summarized in a PivotTable report or PivotChart report. A data field usually contains numeric data, such as statistics or sales amounts.) in a PivotChart report 256  
  • Calculated item formulas in a PivotChart report Limited by available

12/18/09

Date Functions

In Addition to Dynamic date handling Excel provides a wide range of Date related functions to enable us to manipulate dates as most extend.

  • Date Function: This function used to compose date
Syntex: Date(year,month,day)
Example:
=date(2009,12,17)
composes: 17th December'2009

  • you can also use DateValue function to convert String date into date

Syntex: DateValue("date")
Example:
=DateValue("2009/12/17")
Retunrs: 40164  (that is equals to 17th December'2009)

this value can be used further in any function as parameter.

Best part of this function is it flexibility that allows to enter the date in any format, As we take above example we could enter date "17/12/2009", "17 dec 09", "17-December-2009"


  • Day:  This function returns the day from any date provided
Syntex: Day(date) or Day("mm/dd/yyyy")
Example: Day("12/01/2009")
Returns: 01

Note: Excel uses the System's date format by default it is 'M/d/yyyy' you can change this format using control panel - Regional Settings - Dates



Month: Like day function month returns the month from any date provided
Syntex: Month(date) or Month("mm/dd/yyyy")
Example: Month("12/01/2009")
Returns: 12

Year: Like day & Month functions year returns the year from any date provided

Syntex: Year(date) or Year("mm/dd/yyyy")
Example: Year("12/01/2009")
Returns: 2009

Weekday: Weekday function returns the Weekday that is falling on the date provided

Syntex: =Weekday(date)
Example: =Weekday("2009/12/17")
Returns 5 i.e. Thursday
begning from Sunday = 1, Monday = 2 and so on Saturday = 7

Today(): This  function returns the current date. And as the date is changed Excel automatically updates today function on next calculation to the prevailling date this way it will always returen the present date.

Value returned by this function is variable it changes as the date changes to insert constant current date  that doesn't change with change date use Keyboard Shortcut Ctrl + ;

Date.Diff(): this function calculates the differances in months & year between two dates.
Syntex: date.diff(date1,date2)
Example: =DATE.DIFF("10/10/2008",today())
Return: 1 year 2 months  (Assuming today is 17-December-2009)
This function does not calculates differances in days.

For Additional Details about Dates Visit: http://xlxpart.blogspot.com/2009/12/dates-in-excel.html

12/8/09

Dates in Excel

Handling Date methods in Excel is one of the very interesting matters. The Best part of it is you can perform calculation on it.

As Default Excel stores the dates in simple numbers and it is then displayed in Systems date format.

Default system’s format is MM/dd/yyyy but in excel you can change this format as per your convenience.

Likewise Enter any date in any cell

Right click – Format Cells

From Numbers Tab Click on Date and from given several options select any format of date as previewed.

Press OK then Cell’s format of date will be changed

Or you can define your own format. For doing this.

Instead of selecting date from Numbers tab Select Cutom

And enter

“dd/MM/yyyy” or “dd-MM-yyyy” (without Quotes) and see the cell format exactly same.

Now for understanding how to deal with format see the followings:

Date is comprises of three parts (Days, Months and Year) and additional to it a separator is used (by default these separators are “/” and “-“).

d: Represents Day in date
d: day will be displayed in single digit and if day is greater then 9 then only it will be display in tow digits (Like: 2,12)
dd: day will be displayed in two digits and if day is less then 9 then a leading Zero will be added (Like: 02,12)
ddd: days will be showed in weekday format (sun, mon, tue)
dddd: days will be showed in Complete weekday Name format (sunday, monday, tuesday)

m: Denotes Month
m: Month will be displayed in single digit and if Month is greater then 9 then only it will be display in tow digits (Like: 2,12)
mm: Month will be displayed in two digits and if Month is less then 9 then a leading Zero will be added (Like: 02,12)
mmm: Month will be showed in Short Month Name format (Jan, Feb, Mar)
mmmm: Month will be showed in Complete Month Name format (January, February, March)

and y finally denotes year
y: Year will be displayed in single digit and if Year is greater then 9 then only it will be display in tow digits (Like: 2,12)
yy: year will be displayed in two digits and if year is less then 9 then a leading Zero will be added (Like: 02,12)
yyy: Year will be showed in year with century format Like 2009, 2012, 1999

Normally System’s setting allows the default century format like if you type 11/11/25 then date will be 11/11/2025 and if you type 11/11/99 the date will be 11/11/1999, That is because of regional settings. Whenever any two digit year is entered system interprets it based on the system’s setting

To change the Date format and Two Digit year behavior you can go to Control Panel – Regional and Language Option – and Select date.

Change the behavior as per your requirements, But still be careful because if system’s default date format is changed then may some software not work or may behave unscientifically.

Calculation on Dates

As I already stated that calculation on any date is possible

For example Cell A1 has stored date 8th December – 2009 then

Use following formulas

=A1 + 1: 9th December - 2009

=A1 - 1: 7th December - 2009

Suppose you have some date in A2 (15/12/2009)

=A2 –A1 = 07/01/1900 Change it to Number format and you can find the differences of two dates i.e. 7.

You can divide, multiply, add or subtracts date from one another and after changing the cell format to numbers you can get the results.

You can also sue Date.Diff formula to obtain deference of date.

For Additional Details about Excel Date related function Visit:
http://xlxpart.blogspot.com/2009/12/date-functions.html

12/4/09

Is it possible to create a pivot table using source data from more than one worksheet?

Yes you can create pivot using multiple Worksheets. But this function is not as flexible as you create pivot table using single sheet.
Sturcture of all the tables must remain same to take the advantage of this feature.
use keyboard short keys to aproach if you are using 2007 version otherwise the multiple table merging option may not be visile to you.

Press Alt + D followed by P
Select third option "Multiple Consoliation Ranges"
Click Next
Select "Select a Single Page Field for me"
Click Next

Now Select First range and Click on ADD
Add
and Select & Add as many ranges you want to consolidate.
Click Next/Finish

Now a Pivot is created using default fields.
Remeber Only First column values will be treated as row label
and First Column Values will be treated as Columns.

you can drag Column values before and after only column values and can change the way of calculation for the column labels.

As I have already stated you that this is not much flexible function but still very useful. you can experience it yourself while using it.

12/2/09

Excel Sumif

At several times we require calculating the total of our data tables based on some criteria.


Lets take an example:

Suppose we have a excel sheet that has the data of bills submitted by us and we calculating the aging of our bills from the date of submission. Only the bill submission date is older than 30 days then we forward the total start follow up by commercial department.




Here in above sheet we have the Bill submission date we subtract the submission date from today’s date in column E (Instead of entering today’s date in saperate column we can also subtract it directly from Today() function.

We put the Function

=Sumif(F2:F8,”>30”,C2:C8)

This function has three parts

=SUMIF(range,criteria,sum_range)



1. Range: first specify the range that we have to check if it matches to Criteria

2. Criteria: in this we provide the logical equation for the range we want to check

“=30” : Equals to 30

“>=30” : Grater then or equals to 30

“<=30” : Less then or equals to 30

“<30” : Less then 30

“<>30” : Not Equals to 30

>,< and = are the logical operator that can compare two values and can gives True or False results.

3. Sum_Range: in this part we specify range of which we have to take total.

If we ommit the last optional argument (sum_range) the SUMIF would sum all cells in the range F1:F8 which are greater than 30.

11/29/09

Insert the Name of WorkBook in the Cell.

This is very rarely required value in excel but Essencial. this can be used in the formulas to refer the exact location of any file.
Excel doesn't provide direct inbuild feature to retrive the filename in any cell. But it provids us a simple way to retrive it through comination of formulas.

Use the following formula:

=SUBSTITUTE(LEFT(CELL("FileName"),FIND("]",CELL("filename"))-1),"[","")

Here we have used four function to achive our goal

1. sustitute: this function simply finds a part of text in the complete sentencd and replaces with another
like
=sustitute("ABCD","A","X")

In above example from "ABCD" the "A" will be replaced by "X", and the return value of the formula will be XBCD

2. Left: This simply return the leftmost Nth numbers from any text
Like
=Left("ABCD",2) *here we instructed excel to retrive only 2 left characters from ABCD
Thus formula will return - AB

3. Find: this function will simply give the Nth position of the searched text from sentance
=Find("B","ABCD") this function will return the position of B from the left so the value will be 2, as B is on 2nd position from left.

4. Cell: This function retrives the information from Excel Application and return it to us.
there are several perameters provided to for different purposes. in our case we used it to retrive the Name of file.

=Cell("FileName")
this will return the Location + Name of File (Enclosed within Square Brackets) + SheetName
like
C:\Amit\Office\[BlogData.xls]sheet1

useing the find function we retrived the position of ]
from the Left to till the position ] we retrived the text using left function
and using substitute function we replaced [ as "" (2 double quotes continously denot the blank) from the returned value.

we can use this formula in any cell and we can have the name of file in the cell we enter the foumula
C:\Amit\Office\BlogData.xls

11/26/09

New expectetion with 2011 Version in Excel.

Hi...!

Recently newer 2010 version of Ms-excel we release. but still I m expecting some more features with the New version of Excel. I wish to have some them on excel without any additional coding requirement so that any layman can use those features.

1. Summery Wizard: There should be a tool that can summarize the multiple sheet in to one Summery Sheet for example
I have a sheet which contains Purchase Orders in a Standard Format in which some fields are defined like PO No. Date, Vendor's Name, Total Amount, Taxes, Grand Total.
Now on summery sheet I want to have the summery and total of those purchase orders and if it put a remark on summery sheet it should be updated in the respective PO. like Date of Approval Remarks, Submission Date Etc.

2. One of most exiting feature of Excel it Pivot Table but still We are limited to summarize the Single sheet with this feature. The Newer version must contain the capacity to summarize the multiple sheet with same structure in the single Pivot Table.

3. Data Validation List with some conditions like (don't Include First Row, Don't Include Blank cells in the range, or Don't Include certain criteria matched Values from the cells in the range.

Validate only with Unique Items in a Range.


4. Paste Special: There are some Options available on the Right Click - Paste Special. Options that are provided as Radio Buttons must be converted into Check Boxes so that we must be able to make multiple selection. Like if we want to Paste values and Format simultaneously we can Check Values + Formats so that we can ignore to paste column width and Formulas etc.
5. Some Additional Formulas Like
> GetSheetName to Retrieve Sheet Name.
> NumberToWords to convert Numerical Values in Words for at-least thousand crore amount.
> GetCellProperties (FillColor, FontColor, Bold, Italic, Underline, Width and Height etc.
> A formula that can define the Criteria and Ranges that can be further used in Dsum, Dcount, sumif, and countif functions. because Criteria defination in a saperate space is quite tedious and limited affair and not flexible at all.
> Three Additional Formulas or any specific Portion in Excel that can define a Variable and set its Values.
DefVariable - to Define Variable of Certain Datatype.
SetVariableValue - to change the Variable Value
GetVariableValue - to retrieve Values of certain Variable
* above must be addition to the defining Name range.
> An Additional Function Split & Retrieve Nth Part of text: A Function that can Split apart a text using a delimiter and can retrieve Nth splited value in cell.

6. Linked Cells & Ranges: Excel should avail Mutually Linked Cells: Means Two or more cells should linked in such a way that if any one of Linked cell is changed Rest all linked cells should be updated automatically.

Same should be availed with Multiple Ranges / Arrays.


7. Mini Excel / Word: A New Compact Sheet / Doc should be introduced that can run like Calculator or Notepad with Limited Options available for quick Calculations and Notes. It should not much Space nor it should take Much time to Run and open & Save the files.


Above are not for very scientific usage but are used in very routine workings, If we can have them on excel working can be done more dynamically.

11/25/09

2007 Advance Version.

As compared to Old 2003 / XP version of MS Excel in 2007 Version several New Interaction to the Features are added. In previous versions of excel Several Features were Availble but not easily visible. But in 2007 Those Feature are put in front row. Like Auto Fiter's Features that were abailable in only Custom Menu is now splited in several parts and made accessible through Simple Second Line Menu Command.

but some interesting features are added with this version.
1. In Filters we are now able to select as many items we want to select but in previous version only the person who knows Advance filter could select more then tow items.


2. Conditional Formatting is now with several designs and Styles possible. you can apply conditional formatting with more then three conditions. New Data Bars, Icon Sets and Colour Scale helps to analysis data with visual effects.

3. Sorting is now more customizable, Also possile with more then 3 sorting priorities.

4. Some newly added function like, BIN2DEC & DEC2BIN and Randbetween.

5. New Menu Style. Added a nice look to Excel. for some persons it is not convenient but it is the matter of practice only.

6. Excel Introduced a new way of Menu Item aproach but kept in considering the approach through older keyboard combination to the menu items is still possible. In some menu items the results are differant like
if you Press Alt + A + T it will show a Pivot Table Wizard but if you use the Lagacy Keyboard Combination the Classic Pivot Tale Wizard is shown.

But the great thing with this version is now Excel Sheet is more Wide and more Long
1048576 rows X 16384 columns = 17179869184 Cells to work

Still some parts in excel that are to be added in Excel but expecting Like
A formula that can convert Numerical Values in Words.
Pivot table is still requires manual refresh.
There is no formula for Getting Formatting Information of any cell or range.
Thera is no Foumula that can provide information about sheet like sheet name sheet Index no. Etc.

Anyways we are soon expecting newer Version 2010 very shortly. lets hope excel will be with us in a new Avtaar.

Some Excel Shortcut Keys

Shortcut Keys Description
F2 Edit the selected cell.
F5 Goto a specific cell. For example, C6.
F7 Spell check selected text and/or document.
F11 Create chart.
Ctrl + Shift + ; Enter the current time.
Ctrl + ; Enter the current date.
Alt + Shift + F1 Insert New Worksheet.
Shift + F3 Open the Excel formula window.
Shift + F5 Bring up search box.
Ctrl + A Select all contents of the worksheet.
Ctrl + B Bold highlighted selection.
Ctrl + I Italic highlighted selection.
Ctrl + K Insert link.
Ctrl + U Underline highlighted selection.
Ctrl + 5 Strikethrough highlighted selection.
Ctrl + P Bring up the print dialog box to begin printing.
Ctrl + Z Undo last action.
Ctrl + F9 Minimize current window.
Ctrl + F10 Maximize currently selected window.
Ctrl + F6 Switch between open workbooks / windows.
Ctrl + Page up Move between Excel work sheets in the same Excel document.
Ctrl + Page down Move between Excel work sheets in the same Excel document.
Ctrl + Tab Move between Two or more open Excel files.
Alt + = Create a formula to sum all of the above cells
Ctrl + ' Insert the value of the above cell into cell currently selected.
Ctrl + Shift + ! Format number in comma format.
Ctrl + Shift + $ Format number in currency format.
Ctrl + Shift + # Format number in date format.
Ctrl + Shift + % Format number in percentage format.
Ctrl + Shift + ^ Format number in scientific format.
Ctrl + Shift + @ Format number in time format.
Ctrl + Arrow key Move to next section of text.
Ctrl + Space Select entire column.
Shift + Space Select entire row.

Dancing Chart

Ycan make some fun with Chart using Rand or randbetween (only for 2007 or later versions) in excel.
enter the formula in A1
=rand()
or
=randbetween(1,10)
copy the cell and paste it to a1 to j10
select the same range
and press F11
A new sheet with chart is created.
now keep holding F9 key and see the changes.
now change different chart types and colors and Enjoy.

Tip: Short Keys
F11 : Creates a new Sheet with Chart for selected Range
F9 : Re-calculats the entire sheet.