Thursday, 17 October 2024

VB.Net Tutorial: Single & Double Data Types, Inputbox, Msgbox, Messagebo...

🎥 New Video Alert: Master Visual Basic .NET with Key Concepts!

Dive into our latest VB.Net tutorial, where we break down essential topics like Single & Double Data Types, Inputbox, Msgbox, Messagebox, and powerful conversion functions such as Csng, Cdbl, Str, and Convert. Whether you’re a student, beginner programmer, or an experienced developer looking to refresh your knowledge, this tutorial has you covered!

🚀 What You'll Learn:

  • How to work with Single and Double data types in Visual Basic .NET.
  • Simplifying user input and messaging with Inputbox, Msgbox, and Messagebox.
  • Data type conversion with Csng, Cdbl, Str, and Convert functions for better accuracy in your applications.

🔗 Watch now to enhance your VB.Net skills and take your programming to the next level!

#VBNet #VisualBasic #DotNetDevelopment #ProgrammingTutorial #LearnVBNet #DataTypes #CodingSkills

Saturday, 24 July 2021

DCountA Function in Excel | How to use dcounta formula to count filled cells in Excel

 DCountA Function In Excel - Video



How to use Dcounta Function In Excel


Summary of Dcount Function

The Excel DCOUNTA function counts matching records in a database using criteria and an optional field. When a field is provided, DCOUNTA counts both numeric and text values when the field value is not empty. field.

Purpose of DcountA Function

Count matching records in a database

Return value of DcountA Function

Numeric count of matching records

Syntax of DcountA Function

=DCOUNTA (database, [field], criteria)

Arguments of DCountA Function

  • database - Database range including headers.
  • field - [optional] Field name or index to count.
  • criteria - Criteria range including headers.

Usage Notes of DCountA Function

The Excel DCOUNTA function counts matching records in a database using a specified field and criteria. Unlike DCOUNT, which counts only numeric values, DCOUNTA counts both numeric and text values. Empty cells are ignored. The database argument is a range of cells that includes field headers, field is the name or index of the field to count, and criteria is a range of cells with headers matching those in database

Using the example above, you can count records where the color is "red" and price is > 10 with these formulas:

=DCOUNTA(B7:E14,"Color",B4:E5) // field by name
=DCOUNTA(B7:E14,1,B4:E5) // field by index =DCOUNTA(B7:E14,,B4:E5) // field omitted

Caution: If the value in a field is empty it will not be counted, even when criteria match.

Note: The DCOUNTA function will count numbers or text in a given field, whereas DCOUNT only counts numeric values.

Criteria options

The criteria can include a variety of expressions. The table below shows some examples:

CriteriaBehavior
RedMatch "red" or "RED"
Re*Begins with "re"
10Equal to 10
>10Greater than 10
<>Not blank
<>100Not 100
>12/19/2017Greater than Dec 19, 2017

The criteria range for DCOUNT can include more than one row below the headers. When criteria includes more than one row, each row is joined with OR logic, and the expressions in a given criteria row are joined with AND logic.

Notes

  • DCOUNTA counts numbers and text in a given field when criteria match.
  • DCOUNTA supports wildcards in criteria, the support is not as good as in more modern functions like COUNTIFS
  • Criteria can include more than one row (as explained above),
  • The field argument can be supplied as a name in double quotes ("") or as a number representing field index.
  • The database and criteria ranges must include matching headers.

DSum Function in Excel | What is DSum in Excel | DSum Formula In Excel

Dsum function in Excel - Video



Description

The Microsoft Excel DSUM function sums the numbers in a column or database that meets a given criteria.

The DSUM function is a built-in function in Excel that is categorized as a Database Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the DSUM function can be entered as part of a formula in a cell of a worksheet.


Summary

The Excel DSUM function returns the sum of values of the given column from a set of records that match criteria or condition. The values to sum are extracted from a given field in the database.

Purpose
Get sum from matching records
Return value 
The calculated sum
Syntax
=DSUM (database, field, criteria)
Arguments
  • database - Database range including headers.
  • field - Field name or index to count.
  • criteria - Criteria range including headers.
Version
Excel 2003, Excel 2007, Excel 2010, Excel 2014, Excel 2016, Excel 2019, Excel 365
Usage Notes

The Excel DSUM function calculates a sum of values in a set of records that match criteria. The values to sum are extracted from a given field in the database, specified as an argument.

The database argument is a range of cells that includes field headers, field is the name or index of the field to query, and criteria is a range of cells with headers that match those in database

Field can be specified with a name or index. Using the example above, you can get the sum of all "Blue" sales with these formulas:

=DSUM(B7:D13,"Sales",B4:D5) // field by name
=DSUM(B7:D13,3,B4:D5) // field by index

Criteria options

The criteria can include a variety of expressions, including some wildcards. The table below shows some examples:

CriteriaBehavior
RedMatch "red" or "RED"
Re*Begins with "re"
10Equal to 10
>10Greater than 10
<>Not blank
<>100Not 100
>12/19/2017Greater than Dec 19, 2017

Note: support for wildcards is not as extensive as with other functions like COUNTIFS, SUMIFS, MATCH etc. For example, the pattern ??? will match strings with 3 exactly characters in more modern functions, but not in the database functions. If you are using wildcards, test carefully.

Multi-row criteria

The criteria range for DSUM can include more than one row below the headers. When criteria includes more than one row, each row is joined with OR logic, and the expressions in a given criteria row are joined with AND logic.

Notes:

  • DSUM supports wildcards in criteria
  • Criteria can include more than one row (as explained above)
  • The field argument can be supplied as a name in double quotes ("") or as a number representing field index.
  • The database and criteria ranges must include matching headers.

Friday, 23 July 2021

DAverage Function in Excel | DAverage Formula In Excel

DAverage Function in Excel - Video



Description

The Microsoft Excel DAVERAGE function calculates average of all numbers in a column in a list or database, based on a given criteria or conditions.

The DAVERAGE function is a built-in function in Excel that is categorized as a Database Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the DAVERAGE function can be entered as part of a formula in a cell of a worksheet.


Summary

The Excel DAVERAGE function returns the average in a given field for records that match criteria.

Purpose 
Get average from matching records
Return value
The average value in a given field
Syntax
=DAVERAGE (database, field, criteria)
Arguments 
  • database - Database range including headers.
  • field - Field name or index to count.
  • criteria - Criteria range including headers.
Version
Excel 2003, Excel 2007, Excel 2010, Excel 2013, Excel 2016, Excel 2019, Excel 365
Usage Notes

The Excel DAVERAGE function gets the average in a given field for a subset of records that match criteria. The database argument is a range of cells that includes field headers, field is the name or index of the field to get a max value from, and criteria is a range of cells with headers that match those in database

Using the example above, you can get the average value from the field "Price" for records where the color is "red" and quantity is > 2 with these formulas:

=DAVERAGE(B7:E14,"Price",B4:E5) // field by name
=DAVERAGE(B7:E14,2,B4:E5) // field by index

Criteria options

The criteria can include a variety of expressions, including some wildcards. The table below shows some examples:

CriteriaBehavior
RedMatch "red" or "RED"
Re*Begins with "re"
10Equal to 10
>10Greater than 10
<>Not blank
<>100Not 100
>12/19/2017Greater than Dec 19, 2017

Note: support for wildcards is a little different wildcards with COUNTIFS, SUMIFS, MATCH etc. For example, the pattern ??? will match strings with 3 exactly characters in these more recent functions, but not in database functions. If you are using wildcards, test carefully.

Multi-row criteria

The criteria range for DAVERAGE can include more than one row below the headers. When criteria includes more than one row, each row is joined with OR logic, and the expressions in a given criteria row are joined with AND logic.

Notes:

  • DAVERAGE supports wildcards in criteria
  • Criteria can include more than one row (as explained above)
  • The field argument can be supplied as a name in double quotes ("") or as a number representing field index.
  • The database and criteria ranges must include matching headers.