Nice shortcuts here! But is there a way to transform the cells examined in the criteria before applying it?
For example, if there was a temporary name (e.g. TestValue) for the current cell being tested by the criteria, I'd like to do:
=CountIf(A1:A100, WeekDay(TestValue) = 1)
...to count all Mondays in a range of date values? Without a placeholder for the tested cell value, I can't think of a way to do this other than by making a new column containing WeekDay(...) of every value in the range.
@ExcelIsFun Hi thanks, you're spot on... I figured it out after about 30 mins of headscratching:
=SUMPRODUCT(--(TEXT($A$1:$A$100, "ddd")=C3)*$B$1:$B$100) ... (where C1:C5 are "Mon"..."Fri", and I'm trying summing Bx to have a subtotal broken down by day)
The criteria syntax is hackish... Since you can directly map from what I wanted into this SumProduct, it's strange that there's no placeholder/variable syntax in Excel... SumIf(A1:A100, Text(TestValue, "ddd")=C3, B1:B100) would be much simpler!
Hi! One thing I noticed is that this formula will also count Birchwood. A way to remedy this is to just add a space in the quotation marks like so: "* "&C8&" *". You can also use wildcard arrays with countif's too.
You are welcome! If you want to learn Excel, watch the 23 videos in the Basic Series, then move on to the 59 videos in the Highline Excel Class Series.
You are a freagin genius! I have been trying to learn how to mix wildcard with cell locations for months and could not figure it out. I will watch all of your videos. Thank you so much!!!!
You are welcome. If you go to the excelisfun channel, a video will automatically play that shows how to search for the videos, playlist and Excel workbboks that you need to solve whatever problem you have.
You have made such a wonderful collection of excel videos. I wonder whether it is a good idea for you to put a link to the iGoogle gadgets so that more people will enjoy your videos. You may have title like " Excel tip of the day", " Daily Excel ", " Amazing Excel tricks to use before you die ". Let me know, if you decide to do so, i will be the first to subscribe!!
Nice shortcuts here! But is there a way to transform the cells examined in the criteria before applying it?
For example, if there was a temporary name (e.g. TestValue) for the current cell being tested by the criteria, I'd like to do:
=CountIf(A1:A100, WeekDay(TestValue) = 1)
...to count all Mondays in a range of date values? Without a placeholder for the tested cell value, I can't think of a way to do this other than by making a new column containing WeekDay(...) of every value in the range.
batlin 5 months ago
@batlin , maybe a formula like:
=SUMPRODUCT(--WeekDay(TestValue) = 1) or =SUMPRODUCT(--WeekDay(A1:A100) = 1)
ExcelIsFun 5 months ago
@ExcelIsFun Hi thanks, you're spot on... I figured it out after about 30 mins of headscratching:
=SUMPRODUCT(--(TEXT($A$1:$A$100, "ddd")=C3)*$B$1:$B$100) ... (where C1:C5 are "Mon"..."Fri", and I'm trying summing Bx to have a subtotal broken down by day)
The criteria syntax is hackish... Since you can directly map from what I wanted into this SumProduct, it's strange that there's no placeholder/variable syntax in Excel... SumIf(A1:A100, Text(TestValue, "ddd")=C3, B1:B100) would be much simpler!
batlin 5 months ago
Hi! One thing I noticed is that this formula will also count Birchwood. A way to remedy this is to just add a space in the quotation marks like so: "* "&C8&" *". You can also use wildcard arrays with countif's too.
Smith, John
Vikki L. Smith
Smithers, Jim
=SUM(COUNTIF(A2:A20,{"","* "}&C1&{",*",""}))
Typing Smith in C1 will return a 2.
Rebuild8 1 year ago
Nice catch!!!
Thanks for "robustifying" the formula!
ExcelIsFun 1 year ago
This is exactly what I needed - and more, thank you so much!
42FTA 1 year ago
You are welcome!
ExcelIsFun 1 year ago
Comment removed
42FTA 1 year ago
Your excel series is awesome!! Everything I learnt in a $600 excel course is clearly explained in your series. Keep it up!!!!
blakflash 1 year ago
You are welcome! If you want to learn Excel, watch the 23 videos in the Basic Series, then move on to the 59 videos in the Highline Excel Class Series.
ExcelIsFun 1 year ago
Thank you for these videos, they have been a great help in my Info Management class.
kcarpen3 2 years ago
You are welcome!
ExcelIsFun 2 years ago
You are a freagin genius! I have been trying to learn how to mix wildcard with cell locations for months and could not figure it out. I will watch all of your videos. Thank you so much!!!!
jaialaipro34 2 years ago
You are welcome. If you go to the excelisfun channel, a video will automatically play that shows how to search for the videos, playlist and Excel workbboks that you need to solve whatever problem you have.
ExcelIsFun 2 years ago
You have made such a wonderful collection of excel videos. I wonder whether it is a good idea for you to put a link to the iGoogle gadgets so that more people will enjoy your videos. You may have title like " Excel tip of the day", " Daily Excel ", " Amazing Excel tricks to use before you die ". Let me know, if you decide to do so, i will be the first to subscribe!!
microsuez 3 years ago