


The Windows operating environment uses the ANSI character set, whereas Macintosh uses the Macintosh character set. A 'character set' maps characters to their identifying code values, and may vary across operating environments viz. The CODE Function returns the identifying numeric code of the first character in a text string. Excel Text and String Functions: LEFT, RIGHT, MID, LEN, FIND, SEARCH, REPLACE, SUBSTITUTE. Excel Text and String Functions: TRIM & CLEAN.Ĥ.

ASCII Code, Extended ASCII characters (8-bit system) and ANSI Code.ģ. Using VBA Chr and Asc functions to convert excel column number to corresponding column letter, and column letter to column number.Ģ. We would love to hear from you, do let us know how we can improve our work and make it better for you.Excel CODE & CHAR Functions, VBA Asc & Chr Functions, with examples.ġ. Also, you can follow us on Twitter and Facebook. If you liked this blog, share it with your friends on Facebook. By default, this function considers Monday as first day of the week.įunction Display_WeekNum(DefinedDate As Date)ĭisplay_WeekNum = WorksheetFunction.WeekNum(DefinedDate, vbMonday) This function takes date as input parameter and returns the week number. In the “Display_WeekNum” custom function, we have used WorksheetFunction to access the inbuilt WEEKNUM function of the Excel. We have also build custom function “Display_WeekNum” to find the week number for the given date. In this example, we have used both in built functions “WEEKNUM” and custom function “Display_WeekNum” to calculate the week number for the given date.Įxcel has in built function “WEEKNUM” to find the week number.ĭate parameter specifies the date for which one wants to find the week number and FirstDayOfWeek specifies the day which needs to be considered as the first day of the week.

We want to find the week number for a particular date. In this example, we will create a custom function to find the week number for the specified date.įor this example, sample data consists of employee’s attendance data which includes date, employee id and attendance status.
