The Ultimate Excel Hacks: Converting Dates, Counting, and More

The Ultimate Excel Hacks: Converting Dates, Counting, and More

Excel is a powerful tool for data manipulation and analysis, but you can make it work even smarter with a few hacks.  We’ll dive into essential hacks that every Excel user should know. This article will show ultimate Excel hacks like date conversion, counting, and other useful tips to supercharge your workflow.

1. Converting Dates to Different Formats

Excel allows dates to be displayed in various formats. You can customize dates according to your needs.

Basic Date Conversion

Excel offers built-in features for date conversion.

  • Select the dates column.
  • Go to the Home tab >> from the Number Format dropdown >> select your preferred format.
    • Short Date (MM/DD/YYYY)
    • Long Date (Day, Month & Date, Year)

The Ultimate Excel Hacks: Converting Dates, Counting, and More

  • Use Format Cells
    • Select the cells with the date.
    • Right-click on the mouse >>select Format Cells >> select Date and choose your preferred format.

The Ultimate Excel Hacks: Converting Dates, Counting, and More

2. Using TEXT Function for Custom Formats

You can use the TEXT function to create custom date formats in a text string. Insert the following formula in the selected cell.

Formula:

=TEXT(B2, “MM/DD/YYYY”)

This converts the date in cell A1 to a specific format mentioned in the formula. You can. replace MM/DD/YYYY with any format code you need.

The Ultimate Excel Hacks: Converting Dates, Counting, and More

If you want to know the weekday for a date, use the following formula.

=TEXT(B2, “dddd”)

This will display the day of the week, e.g., “Monday”.

The Ultimate Excel Hacks: Converting Dates, Counting, and More

Extracting Day, Month, or Year

To extract day, month, and year from dates, you can use the following formulas.

  • Day: =DAY(A2)
  • Month: =MONTH(A2)
  • Year: =YEAR(A2)

The Ultimate Excel Hacks: Converting Dates, Counting, and More

2. Counting Data in Excel

Excel offers a list of count functions to count specific entries in Excel. Counting different types of cells with criteria is essential for data analysis.

Counting Cells with Numbers

You can use the COUNT function to count only numbers. Insert the following formula in the selected cell.

Formula:

=COUNT(A2:A14)

This formula counts only the numbers it won’t count any string values from the selected.

The Ultimate Excel Hacks: Converting Dates, Counting, and More

Counting Non-Blank Cells

To count all non-empty cells either number or string in a range, you can use the COUNTA function. Insert the following formula in the selected cell.

Formula:

=COUNTA(A2:A14)

This formula will count all the values from the range except empty cells.

The Ultimate Excel Hacks: Converting Dates, Counting, and More

Counting Specific Criteria with COUNTIF

If you need to count cells that meet a specific condition you can use the COUNTIF function. Insert the following formula in any selected cell.

=COUNTIF(E2:E14, “Completed”)

This formula will count the number of cells in the range E2:E14 that contain the word “Completed”.

The Ultimate Excel Hacks: Converting Dates, Counting, and More

Counting with Multiple Criteria Using COUNTIFS

You can use the COUNTIFS function to apply multiple criteria, like counting cells where both criteria are met. Insert the following formula in the selected cell.

Formula:

=COUNTIFS(E2:E14, “Completed”, D2:D14, “>100”)

This formula counts cells where E2:E14 is “Completed” and D2:D14 is greater than or equal to 100.

The Ultimate Excel Hacks: Converting Dates, Counting, and More

3. More Essential Excel Hacks

Highlighting Duplicates:

  • Select the cell range.
  • Go to the Home tab >> from Conditional Formatting >> Highlight Cells Rules >> Duplicate Values.

Removing Duplicates:

  • Select the cell range.
  • Go to the Data tab >> select Remove Duplicates. Choose columns where you want Excel to identify duplicates.
  • click OK.

Using Text to Columns for Delimited Data:

  • Select the cell range you want to split.
  • Go to the Data tab >> Text to Columns >> choose Delimited (for commas, spaces, etc.) or Fixed Width and follow the prompts.

Extracting Left, Right, or MID Characters:

  • =LEFT(A1, 5)     ‘ Extracts first 5 characters.
  • =RIGHT(A1, 3)   ‘ Extracts last 3 characters.
  • =MID(A1, 3, 4)   ‘ Extracts 4 characters starting from the 3rd position

Use Flash Fill:

Excel’s Flash Fill feature detects patterns and fills data based on the examples you type. 

  • Start typing a pattern in the adjacent cell.
  • Go to the Data tab >> from Data Tools >> select Flash Fill.
  • Flash Fill will show the rest of the values following the pattern.

Conclusion

These Excel hacks will streamline your workflow by simplifying data conversion, efficient counting based on criteria, and providing useful tricks like removing duplicates and using Flash Fill. From converting dates for consistent data formatting to using COUNTIF for quick data insights, these tips streamline repetitive tasks and help avoid errors. Master these tips in your Excel sheet to make your Excel tasks faster and more efficient. 

Leave a Reply

Your email address will not be published. Required fields are marked *