Category Archives: Formula

SUM Time in the end of text strings

Did you encounter a task like this?  I did.  Actually it is not as difficult as you may expect.  It could be done in just a minute IF the data is not too bad, like the one shown above. I … Continue reading

Rate this:

Posted in Excel Tips, Formula | Tagged , , , , , , , | 6 Comments

=SUM(‘???’!C3) Is it a valid formula?? No. It is magical indeed!

This is about using wildcards in referencing cells on other worksheets. If you know the basic rule about naming a worksheet, you should know that we cannot use ? or * in any part of a worksheet’s name.  So there … Continue reading

Rate this:

Posted in Excel Tips, Formula | Tagged , , | 31 Comments

Sequential number for visible rows only

How to display a column of sequential number to visible rows only? Got this question from a friend.  Her task is simple as shown below: I guess many people wanted to achieve the same thing but have no idea at all.  Are … Continue reading

Rate this:

Posted in Excel Tips, Formula | Tagged , | 26 Comments

Sum a range of number end with “k”

Does it sound familiar to you? If you are having this kind of issue all the time, you may want to continue reading this as I am going to show you three different approaches to fix the problem. Non-Formula approach Formula … Continue reading

Rate this:

Posted in Excel Tips, Formula | Tagged , , , | 5 Comments

Pay attention when you concatenate – A1 & B1 vs. A1 & “|” & B1

In many case, we may want to combine texts from different cells.  This can be done by either CONCATENATE function or simply an Ampersand &.  E.g. A1 & B1 & C1 …… We may take it for granted as it looks so … Continue reading

Rate this:

Posted in Excel Tips, Formula | Tagged , | Leave a comment

15-significant-digit issue with SUMIF(S), COUNTIF(S), AVERAGEIF(S)

Have you applied SUMIF or COUNTIF to a range that contains numbers with more than 15 digits stored as text? If you did or if you do, you’d better continue to read this as you’ve got wrong answers that you … Continue reading

Rate this:

Posted in Formula | Tagged , , , , | 10 Comments

Average Trap 2 – Average the average

Why we cannot take the average of averages? Once upon a time, I was questioned with the above.  First thing on my mind: “Is it a test?”… So I answered the question carefully, as shown in the screen shot below:

Rate this:

Posted in Formula | Tagged | 1 Comment

Average Trap

What do you mean by “Average”? When the question “What is the average of…” is asked, the top of mind function could possibly be AVERAGE.  But did you know that AVERAGE function ignores text (including number stored as text), logical … Continue reading

Rate this:

Posted in Formula | Tagged , | Leave a comment

Extract last word from a text string

There are many cases that we may just want the last word from a text string.  Typical example would be something like the last row in the above screenshot: There are many codes at the end of a text string … Continue reading

Rate this:

Posted in Excel Tips, Formula | Tagged , , , | 5 Comments

Date Formats – A trick to format date with “st”, “nd”, “rd”, “th”

Well, there is no such custom format for date in Excel… However it can be achieved indirectly, with helper cell 🙂

Rate this:

Posted in Excel Tips, Formula | Tagged , , , | 17 Comments

How to calculate number of overlapping days for two periods?

Have you ever encountered a situation that you need to find out how many days in Period 2 fall into Period 1? Is using IF(IF…(IF…(IF…(IF….. the first thing in your mind?

Rate this:

Posted in Formula | Tagged , , | 10 Comments

2D SUMIF with two variables – one on column and one on row

SUMIF is a commonly used function to give you sum of a range that meets a specific criterion.  For the example above, if you want to know the total expense of Department 1 in Jan, you can use SUMIF: The Syntax … Continue reading

Rate this:

Posted in Formula | Tagged , , , | 12 Comments

How Excel formula can save your time?

Extract number from a text string This post is about two things: How a poor system set up could drive you crazy? Why being good in Excel could save you lots of time in workplace? Another real work example.  I was … Continue reading

Rate this:

Posted in Formula | Tagged , , , , , , | 4 Comments

Perform VLOOKUP with 2 lookup values

4 different ways to perform LOOKUP with 2 lookup values We know that VLOOKUP is very useful. At the same time, we know that VLOOKUP has its limitations. E.g. VLOOKUP only looks from left to right; VLOOKUP only handle one … Continue reading

Rate this:

Posted in Formula | Tagged , , , , | 38 Comments

3D VLOOKUP – Perform VLOOKUP from more than one table

Pls have your 3D glasses ready… only if you are going to watch a 3D movie.  You don’t need it for a 3D VLOOKUP. We talked about how to do a 2D VLOOKUP by using MATCH together with VLOOKUP.  With that … Continue reading

Rate this:

Posted in Formula | Tagged , , , | 3 Comments

Time Conversion (2)

How to convert 24hr input as 4-digit number into TIME in Excel? i.e. turn 500 into 05:00 correctly in Excel. Answer: =TEXT(Your 4-digit number,”00\:00″)+0 ‘Format the result as TIME

Rate this:

Posted in Excel Tips, Formula | Tagged , | 6 Comments

Convert an 8-digit number into Excel-recognizable Date

Have you ever encountered a situation that date is input as 8-digit number instead of the correct date value in Excel? You cannot perform any proper date related calculation / functions to the 8-digit number in Excel because it is … Continue reading

Rate this:

Posted in Excel Tips, Formula | Tagged , | 25 Comments

Calculate number of a specific day between two dates

Answer: =SUMPRODUCT(–(TEXT(ROW(INDIRECT(B1&”:”&B2)),”DDDD”)=”Sunday”)) ‘where B1 is start date; B2 is end date. Excuse me? What it says?

Rate this:

Posted in Excel Tips, Formula | Tagged , , , | 16 Comments

SUM across different worksheets (aka 3D SUM)

Did you ever make a formula like the one below?  After reading this post, I hope you will never make a formula in this way again.

Rate this:

Posted in Excel Tips, Formula | Tagged | 9 Comments

How to get rid of the error message?

  Did you know… there are 7 (+1 if you consider #### an error) types of error message in Excel?  In my experience, most users do not care about the meaning of the errors.  They just want them “disappear” on their … Continue reading

Rate this:

Posted in Excel Tips, Formula | Tagged , | 2 Comments