+ Reply to Thread
Results 1 to 10 of 10

need multifunctional formula or macro

  1. #1
    Registered User
    Join Date
    02-07-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    5

    need multifunctional formula or macro

    hi im stuck with my project. prj.jpg
    i need formula which could identify periods for value i enter like "aa" starting from January. 22-23 Jan aa 1 pair then 05-14 feb aa1 pair and 16 feb aa 1 pair so total is 3 pairs of absence and it should recognize periods by shift pattern (so if 4 off on shift [blue] + 2 off on shift [blue] than "aa" 1 pair of absence, if 4 off on shift [blue] + 2 off on shift [blue] and next shift 1 off than total 2 pairs.

    i would really appreciate if you could help me with this.

    Kind regards VJ

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: need multifunctional formula or macro

    Could you post a workbook?
    Quang PT

  3. #3
    Registered User
    Join Date
    02-07-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    5

    Re: need multifunctional formula or macro

    hi

    here is a link to *.xlsx https://app.box.com/s/dfovr083em6yacf42sn2q3mr7jqqaic4

    in sheet "Acalendar" i done so far only countif but i try to make "Acalendar" transfer periods in sheet "Adates" i done in red date which means one period [period keep counting as 1 if day off "AA" goes in a row by shift patern] if for instance there is one gap in shift pattern without "AA" and starts again that means 2 periods.

    Thanks one more time
    VJ

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: need multifunctional formula or macro

    vj2, welcome to the forum

    2 things...
    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    and please post your WB to the forum, not all members are able - or willing - to access file-hosting sites
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    02-07-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    5

    Re: need multifunctional formula or macro

    Hi again here is attached file of my project use previous post to understand needs... So far i am trying to quick learn how to use excel vba because i think it could be better by clicking button and get report with criteria i need to be shown.

    unfortunately i still cannot figure it out how to generate periods by shift pattern

    Regards
    VJ
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: need multifunctional formula or macro

    unless there is some logic behind how you apply the colors for shifts, then you will need VBA for this - regular formulas cannot "see" colors.

  7. #7
    Registered User
    Join Date
    02-07-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    5

    Re: need multifunctional formula or macro

    hi FDibbins

    no mate nothing special for colouring cells simple colour filling. I realized that there is no way i can do what i want with formulas so i started to learn VBA because i have no clue how to use VBA and it looks like for that what i need it will be not so simple code.

    Thanks
    VJ

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: need multifunctional formula or macro

    OK, well perhaps once you have complied with the 1st request in post #4, members will offer suggestions?

  9. #9
    Registered User
    Join Date
    02-07-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    5

    Re: need multifunctional formula or macro

    Hi again guys,

    i still working on this project but now i try to get report and pivot table seems to give wrong report (I just need after choosing name to get info about name ) it sums every thing and I cannot add 2 worksheets to pivot table report.

    Regards

    VJ @ Tulip Ltd

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: need multifunctional formula or macro

    OK, let me make this clear for you, seeing as 2 polite requests have gone unnoticed...

    Change your thread title please, no other members will give suggestions until you have complied with that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Macro: Plugging an Array-Formula into a Cell and Dragging Formula Down Columns
    By Brianandstewie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2013, 02:57 PM
  2. Replies: 1
    Last Post: 01-27-2013, 11:05 AM
  3. Macro: Applying formula to multiple cells in excel (formula editing)
    By city in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:41 AM
  4. Formula/macro - Apply certain formula as per duplicate cells in column L
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2011, 12:28 AM
  5. Replies: 1
    Last Post: 07-20-2006, 03:05 PM

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