• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

List Every Wednesday of this month...how to do with a formula?

PP3321

Active Member
The table contains weekday and day for June 2016

I need to list every Wednesdays' days automatically with a formula.

I can think of 2 possible solutions.

1. Use Index & Match?
2. Use WeekDay() Function?

Your guidance is greatly appreciated...


screenshot.png
 
pls referred to attached file

1st Option:-=SMALL(IF($A$1:$A$29=C1,ROW($B$1:$B$29)),ROW(A1)) finish with CTRL+SHIFT+ENTER

2nd Option:-=AGGREGATE(15,6,$B$1:$B$29/($A$1:$A$29=$C$1),ROW(A1))
 

Attachments

  • Book5.xlsx
    9.9 KB · Views: 7
@Nebu
Sure but I am trying to automate the Excel template already developed by someone else. Before, it was entered manually. My job is to improve it by automating.
It is not easy to suggest to managers to use new template with pivot table because they want to stay with the current format.
 
Hi ,

But as people familiar with the power of Excel , it should be up to us to suggest better ways of doing our work ; if it means learning something new , it should be done , since if we do not embrace change , change will overcome us !

As far as automating is concerned , it cannot get any simpler than a pivot table , especially when it is used in conjunction with slicers.

If we compare Nebu's solution with the formula solution :

1. The formula solution requires the user to enter the desired day of the week ; this can be made easier by implementing a Data Validation dropdown , but there are disadvantages even in this route :
  • The DV dropdown has to be implemented manually
  • DV dropdowns do not allow for multiple selections
  • DV dropdowns need to be recreated / extended when data is deleted or added ; of course , this objection does not apply in this case

2. The pivot table + slicer solution is totally automated , requiring only that the pivot table be refreshed if the input data changes.
  • Slicers will automatically reflect the refreshed data
  • Slicers allow for multiple selection

Narayan
 
@NARAYANK991
1. I am adding the first date using VBA. So it is not a problem
2. I disagree.
After evaluating everything at every level,
I came to conclusion that it is better not to use Pivot Table in this particular case.
In business situations, we need to consider every factor.
Your point of view as Excel Developer is only 1 factor...
 
Back
Top