Help combing formula

Liverlee

Board Regular
Joined
Nov 8, 2018
Messages
73
Office Version
  1. 2019
Platform
  1. Windows
Hi i have set up a calendar tracker

This formula works for recurring weekly appointments where 1 = Mon, 2= tue, wed = 3 etc etc

=IF(AB$12=$G12,1,IF(AB$12=$H12,2,IF(AB$12=$I12,3,IF(AB$12=$J12,4, IF(AB$12=$K12,5,"")))))

On row Ab1 I have week of month set up, i.e 1,2,3,4,5.

So i'd like to be able to set up the above formula where you can select week day (either 1 to 5) and then week of month ( either 1 to 5)

anyone have any ideas.
 
Hi Jason thanks for your time and patience. I'm sure there's a better way but i'm an excel novice as are my colleagues.

Anyway to answer your question.

Row 1 formula is =AB5-AB2+1 for the week of month
Row 2 formula is =WEEKNUM(AB3)
Row 3 formula is =DATE(YEAR(AB10),MONTH(AB10),1)
Row 5 formula is =WEEKNUM(AB10)

Row 10 is the calendar dates formatted to show as ddd. (mon, tue, wed)

My idea was if you clicked q13 with a 1= mon a formula would search row 10 for for all the mondays and if you click v13 with a 1 = 1st week of month then it would also search row 1 for all the week 1's and if both conditions were met you'd get a series of 'trues' or 'x' along ab13 to ih13.

I dont know.
 
Last edited:
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Trying to simplify it, see if this gives you something to work with, in a blank sheet, enter the date 1/1/2019 in C2, then drag right for about 20 columns so that the date increases.
Enter this formula into C2, then drag right under the dates, it will show FALSE in every cell to start with.

=IF(AND(IF($B2<>"",(WEEKNUM(C$1)-WEEKNUM(EOMONTH(C$1,-1)+1)+1)=$B2,1),TEXT(C$1,"ddd")=$A2),TRUE,FALSE)

Type Mon into A2 and all of the mondays should now change to TRUE.
Type 2 into B2 and only monday of week 2 will be TRUE.

Is that anything close to what you're attempting?
 
Upvote 0
Ahh Jason, you're a genius!! Just tried it on a blank worksheet and it works perfectly. Thank you so much. Added bonus is i'll be able to trim some of the columns out of my spreadsheet too.

(y)
 
Upvote 0

Forum statistics

Threads
1,214,962
Messages
6,122,482
Members
449,088
Latest member
Melvetica

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