SOLVED

How to link multi checkbox list for multi columns HELP

%3CLINGO-SUB%20id%3D%22lingo-sub-1520205%22%20slang%3D%22en-US%22%3EHow%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1520205%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20over%2010%20columns%20of%20data%20that%20each%20has%20over%2050%20rows.%20These%20Numbers%20are%20going%20up%20on%20daily%20bases.%20I%20have%20to%20create%20a%20checkbox%20list%20for%20every%20single%20Column%20and%20link%20it%20to%20a%20cell%20next%20to%20it.%20I%20realized%20if%20I%20want%20to%20do%20this%20one%20by%20one%20by%20the%20time%20I%20finish%20it%2C%20I%20will%20be%20homeless.%20I%20also%20tried%20some%20VBA%20codes%20but%20they%20mostly%20work%20for%20only%20one%20column%2C%20not%20multi-column.%20like%20this%20one%20below%3B%20Is%20there%20any%20solution%20to%20this%20problem%20that%20somebody%20can%20help%20or%20I%20should%20start%20applying%20for%20a%20new%20job%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22line%20number1%20index0%20alt2%22%3ESub%20LinkChecks()%3C%2FDIV%3E%3CDIV%20class%3D%22line%20number2%20index1%20alt1%22%3E'Update%2020150310%3C%2FDIV%3E%3CDIV%20class%3D%22line%20number3%20index2%20alt2%22%3Ei%20%3D%202%3C%2FDIV%3E%3CDIV%20class%3D%22line%20number4%20index3%20alt1%22%3EFor%20Each%20cb%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EIn%20ActiveSheet.CheckBoxes%3C%2FDIV%3E%3CDIV%20class%3D%22line%20number5%20index4%20alt2%22%3Ecb.LinkedCell%20%3D%20Cells(i%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%22B%22).Address%3C%2FDIV%3E%3CDIV%20class%3D%22line%20number6%20index5%20alt1%22%3Ei%20%3D%20i%20%2B%201%3C%2FDIV%3E%3CDIV%20class%3D%22line%20number7%20index6%20alt2%22%3ENext%20cb%3C%2FDIV%3E%3CDIV%20class%3D%22line%20number8%20index7%20alt1%22%3EEnd%20Sub%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1520205%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1520229%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1520229%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714984%22%20target%3D%22_blank%22%3E%40msm66%3C%2FA%3E%26nbsp%3BInspired%20by%20what%20I%20found%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F41896374%2Fvba-refer-to-checkbox-from-the-cell-address%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F41896374%2Fvba-refer-to-checkbox-from-the-cell-address%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20this%20code%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3ESub%20LinkChecks()%0A%0AFor%20Each%20cb%20In%20ActiveSheet.CheckBoxes%0A%20%20%20%20With%20cb%0A%20%20%20%20%20%20%20%20.LinkedCell%20%3D%20_%0A%20%20%20%20%20%20%20%20.TopLeftCell.Offset(0%2C%201).Address%0A%20%20%20%20%0A%20%20%20%20End%20With%0A%0ANext%20cb%0A%0AEnd%20Sub%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1520342%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1520342%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714984%22%20target%3D%22_blank%22%3E%40msm66%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESelect%20your%20cells%20and%20try%20running%20this%20macro%20to%20add%20checkboxes%20and%20link%20it%20to%20the%20cell%20behind%20the%20checkbox.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20that's%20not%20what%20you%20want%20then%20you%20can%20change%20the%20linked%20cell%20to%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecb.LinkedCell%20%3D%20cell.Offset(0%2C1).Address%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eto%20link%20it%20to%20the%20cell%20on%20the%20same%20row%20and%20one%20column%20to%20the%20right.%20Also%2C%20you%20would%20need%20to%20change%20the%20cell%20reference%20for%20the%20custom%20number%20format%20to%20match%20the%20linked%20cell%20(I'm%20assuming%20you%20want%20the%20linked%20cell%20to%20appear%20blank%20for%20a%20cleaner%20look%20-%20if%20not%2C%20then%20you%20can%20delete%20that%20line).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecell.Offset(0%2C1).NumberFormat%20%3D%20%22%3B%3B%3B%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3ESub%20AddCheckBoxes()%0A%20%20%20%20%20Const%20height%20As%20Double%20%3D%2019.2%0A%20%20%20%20%20Const%20width%20As%20Double%20%3D%2017.4%0A%20%20%20%20%20Dim%20left%20As%20Double%0A%20%20%20%20%20Dim%20top%20As%20Double%0A%20%20%20%20%20Dim%20area%20As%20Range%0A%20%20%20%20%20Dim%20cell%20As%20Range%0A%20%20%20%20%20Dim%20cb%20As%20Object%0A%20%20%20%20%20%0A%20%20%20%20%20%0A%20%20%20%20%20For%20Each%20area%20In%20Selection.Areas%0A%20%20%20%20%20%20%20%20%20%20For%20Each%20cell%20In%20area.Cells%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20left%20%3D%20cell.left%20%2B%20((cell.width%20-%20width)%20%2F%202)%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20top%20%3D%20cell.top%20%2B%20((cell.height%20-%20height)%20%2F%202)%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Set%20cb%20%3D%20ActiveSheet.CheckBoxes.Add(left%2C%20top%2C%20width%2C%20height)%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cb.LinkedCell%20%3D%20cell.Address%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cb.Caption%20%3D%20vbNullString%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cb.Value%20%3D%20False%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cell.NumberFormat%20%3D%20%22%3B%3B%3B%22%0A%20%20%20%20%20%20%20%20%20%20Next%20cell%0A%20%20%20%20%20Next%20area%0A%20%20%20%20%20%0A%20%20%20%20%20Set%20cb%20%3D%20Nothing%0A%20%20%20%20%20Set%20area%20%3D%20Nothing%0A%20%20%20%20%20Set%20cell%20%3D%20Nothing%0A%20%20%20%20%0AEnd%20Sub%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1522429%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1522429%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%3CBR%20%2F%3EThank%20you%20very%20much%20for%20your%20efforts%20and%20for%20taking%20the%20time%20to%20solve%20my%20problem.%20You%20helped%20me%20before%20too.%20I%20remember%20your%20Id.%20You%20are%20a%20truly%20intelligent%20man.%20Again%20appreciate%20it%20a%20lot%2C%20it%20could%20not%20be%20more%20clear%20and%20straightforward%20on%20the%20point.%20It%20works%20and%20this%20solution%20was%20exactly%20the%20one%20I%20needed.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1522438%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1522438%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%3CBR%20%2F%3EThank%20you%20very%20much%20for%20considering%20my%20problem%20and%20for%20taking%20the%20time%20to%20help%20me.%20I%20looked%20at%20your%20profile%2C%20very%20impressive.%20All%20my%20family%20lives%20in%20Sweden%20Gothenburg.%20Again%20appreciate%20your%20help.%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%20solution%20is%20very%20straightforward.%20I%20realized%20you%20have%20resolved%20so%20many%20problems%20regarding%20Checkboxes'%20subject.%20because%20before%20I%20ask%20my%20question%20I%20search%20a%20lot%20to%20see%20maybe%20somebody%20else%20had%20a%20same%20problem%20before%20and%20I%20see%20you%20almost%20were%20engaged%20in%20most%20of%20them.%20I%20think%20you%20should%20check%20out%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%20Solution.%20you%20might%20refer%20it%20later%20to%20somebody%20else%20like%20me.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1522448%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1522448%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714984%22%20target%3D%22_blank%22%3E%40msm66%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EYou're%20quite%20welcome.%20I'm%20happy%20that%20worked%20for%20you.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1591034%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1591034%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714984%22%20target%3D%22_blank%22%3E%40msm66%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20me%20again.%20since%20you%20helped%20with%20my%20last%20problem%20regarding%20checkboxes%20I%20thought%20you%20might%20be%20able%20to%20solve%20my%20recent%20frustration.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20attached%20an%20excel%20file.%20I%20am%20looking%20for%20a%20formula%20or%20function%20that%20it%20will%20adjust%20my%20calendar%20or%20schedule.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet's%20say%20if%20I%20pick%20Monday%20only%20task%201%2C%20Tuesday%20task%201%20and%20task%202%20and%20Friday%20task%202.%20so%20now%20I%20am%20looking%20for%20a%20solution%20that%20all%20I%20can%20see%20in%20the%20new%20table%20will%20be%20look%20like%20or%20similar%20to%20the%20%22green%20table%22%20(basically%20modify%20a%20table%20to%20new%20table%20excluded%20the%20days%20and%20tasks%20that%20has%20not%20been%20selected%20(or%20ideally%20I%20am%20not%20sure%20if%20there%20is%20any%20way%20that%20just%20by%20selecting%20days%20and%20type%20of%20task%20can%20directly%20generate%20the%20table)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20this%20doable%20through%20excel%3F%26nbsp%3B%3C%2FP%3E%3CP%3Elooking%20forward%20to%20hearing%20your%20feedback.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1591639%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1591639%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714984%22%20target%3D%22_blank%22%3E%40msm66%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20you%20want%20the%20green%20table%20to%20pull%20from%20the%20first%20table%20depending%20on%20whether%20or%20not%20that%20day%2Ftask%20is%20checked%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20believe%20it%20is%20doable%20(see%20attached).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1591733%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1591733%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWell%20thank%20you%2C%20I%20would%20never%20figure%20this%20out%20by%20myself.%20%3CLI-EMOJI%20id%3D%22lia_winking-face%22%20title%3D%22%3Awinking_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3Eit%20is%20working%20perfectly.%20thank%20you.%26nbsp%3B%3C%2FP%3E%3CP%3Eonly%20one%20question%20that%20might%20happen%20in%20the%20future.%2C%20let's%20say%20we%20have%20multi-columns%20under%20each%20day.%20for%20example%2C%20underneath%20the%20Monday%20we%20have%2010%20columns%20and%204%20rows.%20if%20we%20use%20this%20formula%20then%20we%20will%20see%20%22off%22%20in%20each%20cell%20and%20it%20won't%20look%20good.%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20there%20any%20trick%20that%20the%20formula%20merges%20all%20the%20cells%20and%20just%20we%20see%20one%20%22off%22%20instead%20of%20multi%20off%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1591769%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20link%20multi%20checkbox%20list%20for%20multi%20columns%20HELP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1591769%22%20slang%3D%22en-US%22%3EI'm%20afraid%20formulas%20can't%20perform%20actions%20like%20merging%20cells.%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I have over 10 columns of data that each has over 50 rows. These Numbers are going up on daily bases. I have to create a checkbox list for every single Column and link it to a cell next to it. I realized if I want to do this one by one by the time I finish it, I will be homeless. I also tried some VBA codes but they mostly work for only one column, not multi-column. like this one below; Is there any solution to this problem that somebody can help or I should start applying for a new job?

 

Sub LinkChecks()
'Update 20150310
i = 2
For Each cb In ActiveSheet.CheckBoxes
cb.LinkedCell = Cells(i, "B").Address
i = i + 1
Next cb
End Sub
9 Replies
Highlighted

@msm66 Inspired by what I found here:

https://stackoverflow.com/questions/41896374/vba-refer-to-checkbox-from-the-cell-address 

Try this code:

Sub LinkChecks()

For Each cb In ActiveSheet.CheckBoxes
    With cb
        .LinkedCell = _
        .TopLeftCell.Offset(0, 1).Address
    
    End With

Next cb

End Sub

 

Highlighted
Best Response confirmed by msm66 (Contributor)
Solution

@msm66 

 

Select your cells and try running this macro to add checkboxes and link it to the cell behind the checkbox.

 

If that's not what you want then you can change the linked cell to 

 

cb.LinkedCell = cell.Offset(0,1).Address

 

to link it to the cell on the same row and one column to the right. Also, you would need to change the cell reference for the custom number format to match the linked cell (I'm assuming you want the linked cell to appear blank for a cleaner look - if not, then you can delete that line).

 

cell.Offset(0,1).NumberFormat = ";;;"

 

 

 

 

Sub AddCheckBoxes()
     Const height As Double = 19.2
     Const width As Double = 17.4
     Dim left As Double
     Dim top As Double
     Dim area As Range
     Dim cell As Range
     Dim cb As Object
     
     
     For Each area In Selection.Areas
          For Each cell In area.Cells
               left = cell.left + ((cell.width - width) / 2)
               top = cell.top + ((cell.height - height) / 2)
               Set cb = ActiveSheet.CheckBoxes.Add(left, top, width, height)
               
               cb.LinkedCell = cell.Address
               cb.Caption = vbNullString
               cb.Value = False
               
               cell.NumberFormat = ";;;"
          Next cell
     Next area
     
     Set cb = Nothing
     Set area = Nothing
     Set cell = Nothing
    
End Sub

 

 

Highlighted
@JMB17
Thank you very much for your efforts and for taking the time to solve my problem. You helped me before too. I remember your Id. You are a truly intelligent man. Again appreciate it a lot, it could not be more clear and straightforward on the point. It works and this solution was exactly the one I needed.
Highlighted
@Riny_van_Eekelen
Thank you very much for considering my problem and for taking the time to help me. I looked at your profile, very impressive. All my family lives in Sweden Gothenburg. Again appreciate your help. @JMB17 solution is very straightforward. I realized you have resolved so many problems regarding Checkboxes' subject. because before I ask my question I search a lot to see maybe somebody else had a same problem before and I see you almost were engaged in most of them. I think you should check out @JMB17 Solution. you might refer it later to somebody else like me.
Highlighted
@msm66

You're quite welcome. I'm happy that worked for you.
Highlighted

@msm66 

Hi @JMB17 

It's me again. since you helped with my last problem regarding checkboxes I thought you might be able to solve my recent frustration. 

 

I attached an excel file. I am looking for a formula or function that it will adjust my calendar or schedule.

 

Let's say if I pick Monday only task 1, Tuesday task 1 and task 2 and Friday task 2. so now I am looking for a solution that all I can see in the new table will be look like or similar to the "green table" (basically modify a table to new table excluded the days and tasks that has not been selected (or ideally I am not sure if there is any way that just by selecting days and type of task can directly generate the table)

 

is this doable through excel? 

looking forward to hearing your feedback.

 

Highlighted

@msm66 

 

So, you want the green table to pull from the first table depending on whether or not that day/task is checked?

 

I believe it is doable (see attached).

Highlighted

@JMB17 

Well thank you, I would never figure this out by myself.

it is working perfectly. thank you. 

only one question that might happen in the future., let's say we have multi-columns under each day. for example, underneath the Monday we have 10 columns and 4 rows. if we use this formula then we will see "off" in each cell and it won't look good. 

is there any trick that the formula merges all the cells and just we see one "off" instead of multi off?

 

thank you. 

Highlighted
I'm afraid formulas can't perform actions like merging cells.