+ Reply to Thread
Results 1 to 4 of 4

to find week based on no. of day

Hybrid View

  1. #1
    Registered User
    Join Date
    09-09-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    7

    Post to find week based on no. of day

    Hi all,

    What is the right formula for the following in the Col F:
    Col A is Week, Col B is the no. of day in the week, Col D is the day start from day 1. Col F is to display the week; for example, D1 is in W1, D8 is in W2, D30 is in W5...

    Col A Col B Col C Col D Col E Col F
    ===============================================
    Week|No. of Day|*** No. of Day| Day| Day| Week
    W1 7 7 D1 1 W1
    W2 6 13 D2 2 W1
    W3 11 24 D3 3 W1
    W4 4 28 D4 4 W1
    W5 7 35 D5 5 W1
    W6 9 44 D6 6 W1
    W7 5 49 D7 7 W1
    W8 7 56 D8 8 W2
    W9 7 63 D9 9 W2
    W10 7 70 D10 10 W2
    W11 7 77 D11 11 W2
    W12 8 85 D12 12 W2
    W13 6 91 D13 13 W2
    W14 7 98 D14 14 W3
    W15 7 105 D15 15 W3
    W16 7 112 D16 16 W3
    W17 8 120 D17 17 W3
    W18 6 126 D18 18 W3
    W19 7 133 D19 19 W3
    W20 7 140 D20 20 W3
    D21 21 W3
    D22 22 W3
    D23 23 W3
    D24 24 W3
    D25 25 W4
    D26 26 W4
    D27 27 ..
    D28 28
    D29 29
    D30 30
    D31 31
    D32 32
    D33 33
    D34 34
    D35 35
    D36 36
    D37 37
    D38 38
    D39 39
    D40 40
    D41 41
    D42 42
    D43 43
    D44 44
    D45 45
    D46 46
    D47 47
    D48 48
    D49 49
    D50 50
    D51 51
    D52 52
    D53 53
    D54 54
    D55 55
    D56 56
    D57 57
    D58 58
    D59 59
    D60 60
    D61 61
    D62 62
    D63 63
    D64 64
    D65 65
    D66 66
    D67 67
    D68 68
    D69 69
    D70 70
    D71 71
    D72 72
    D73 73
    D74 74
    D75 75
    D76 76
    D77 77
    D78 78
    D79 79
    D80 80
    D81 81
    D82 82
    D83 83
    D84 84
    D85 85
    D86 86
    D87 87
    D88 88
    D89 89
    D90 90
    D91 91
    D92 92
    D93 93
    D94 94
    D95 95
    D96 96
    D97 97
    D98 98
    D99 99
    D100 100
    D101 101
    D102 102
    D103 103
    D104 104
    D105 105
    D106 106
    D107 107
    D108 108
    D109 109
    D110 110
    D111 111
    D112 112
    D113 113
    D114 114
    D115 115
    D116 116
    D117 117
    D118 118
    D119 119
    D120 120
    D121 121
    D122 122
    D123 123
    D124 124
    D125 125
    D126 126
    D127 127
    D128 128
    D129 129
    D130 130
    D131 131
    D132 132
    D133 133
    D134 134
    D135 135
    D136 136
    D137 137
    D138 138
    D139 139
    D140 140
    Attached Files Attached Files
    Last edited by roger81; 09-30-2009 at 04:19 AM. Reason: attached file

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: to find week based on no. of day

    Generally a lot easier to put your data into a sample file and upload accordingly...

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: to find week based on no. of day

    If I've interpreted correctly (harder without file) I would say first adjust column C such that

    C2: =SUM(MAX(1,B1),C1)
    copied down
    (thus C reflects the cumulative start day of the week)

    Then

    F2: =LOOKUP(E2,$C$2:$C$21,$A$2:$A$21)
    copied down
    adjust ranges to suit obviously

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: to find week based on no. of day

    If you want to keep the data as you have it now then try this formula in G2 copied down

    =IF(F2>C$2,LOOKUP(F2-1,C$2:C$20,A$3:A$21),A$2)

    If you want to automate the cumulative number of days in column C then use this formula in C2 copied down

    =SUM(B$2:B2)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1