Formula + a general inquiry. Maybe someone can try and help. Thanks

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
Formula does not work. I am trying to count how many Dsx are there on weekday 6 that is fri from the range.

Code:
=COUNTIFS((WEEKDAY(A2)=6,B2:B4="Dsx")

And one more question please.
Whenever we begin to type a formula in a cell for instance =T we get suggestion pop up like text, time, tan etc etc...my question is
is there a way to select without having me to write the whole word or without having me to use the mouse?:biggrin:
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Whenever we begin to type a formula in a cell for instance =T we get suggestion pop up like text, time, tan etc etc...my question is
is there a way to select without having me to write the whole word or without having me to use the mouse?

With the intellisense option you want highlighted, just hit the Tab key.
 
Upvote 0
Don't think you need COUNTIFS for this:

=IF(WEEKDAY(A2)=6,SUMIF(B2:B4,"=Dsx"),"")
 
Upvote 0
Don't think you need COUNTIFS for this:

=IF(WEEKDAY(A2)=6,SUMIF(B2:B4,"=Dsx"),"")

I can't see SUMIF working either.

Maybe

=sumproduct((weekday(a2:a4)=6)*(b2:b4="dsx"))

The original request is a little vague.
 
Upvote 0
That would work. You never defined that the WEEKDAY function was supposed to look at a range.

Another way to write the SUMPRODUCT function:

=SUMPRODUCT(--(WEEKDAY(A2:A4)=6),--(B2:B4="Dsx"))
 
Upvote 0
Thanks alot! it works perfect that way.

Thanks again everyone for helping:)
 
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,005
Members
449,203
Latest member
Daymo66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top