+ Reply to Thread
Results 1 to 24 of 24

Stop counter and add to other cell

  1. #1
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Stop counter and add to other cell

    hello i want help how to stop a counter to a cell if price >4 and star to other cell from 0..1...2...3...4...5

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    hello sorry but i haven't work book...

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    Then you will have to try agsin to explain what you want. Your example was simply 6 digits from 0 to 5.... No explanation at all.

  5. #5
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    I upload workbook, i want when SUM Sat/Sun cell = 4 and Total Sat/Sun Month = 8 then stop count to SUM Sat/Sun cell to 4 and move rest of count >4 to cell Day Off Year..
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    04-30-2015
    Location
    The Netherlands
    MS-Off Ver
    office 365
    Posts
    195

    Re: Stop counter and add to other cell

    Isn't this the same question as you already posted here before? https://www.excelforum.com/excel-for...ther-cell.html

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    How we were we expected to guess this from your first description???!!!
    Try this...

    NL8: =MIN(SUM(NJ8,NK8),4)

    NM8: =MIN(SUMPRODUCT((OFFSET($A6,0,31*($A$3-1)+1,1,31)=NP17)+(OFFSET($A6,0,31*($A$3-1)+1,1,31)=NP18)),8)

    NN8: =SUMPRODUCT((OFFSET($A6,0,31*($A$3-1)+1,1,31)=NP17)+(OFFSET($A6,0,31*($A$3-1)+1,1,31)=NP18))-NM8

    The formulae in NJ8 and NK8, along with these formulae, are all ordinary formula, no need for CSE, I think...
    Attached Files Attached Files

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: Stop counter and add to other cell

    @FredyHar (and also taken to the attention of Admins/Moderators) and is it the same user as topmayra here: https://www.excelforum.com/excel-for...h-out-vbs.html
    Best Regards,

    Kaper

  9. #9
    Forum Contributor
    Join Date
    04-30-2015
    Location
    The Netherlands
    MS-Off Ver
    office 365
    Posts
    195

    Re: Stop counter and add to other cell

    @Kaper that indeed seems to be the same worksheet as well.

  10. #10
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    @Glenn Kennedy

    YOUR ANSWER is helpfull my friend, thnak you. But if i delete all W then Day Off Year has value 2 the correct value is 0

    how to fix this? and if i change month then look Day Off Year change with out W....
    Last edited by hackertom; 09-20-2018 at 06:27 PM.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    The whole thing seems over complicated. However, I do not intend to spend ages reading any of your previous threads on this subject. Please explain clearly, here, what EACH of the 5 formulae are supposed to do, for a couple of example rows.... what the expected results are.

  12. #12
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    OK first if add W to orange cell (hollidays list day) then Day Off Year +1 (I DON'T KHOW HOW TO CEATE THAT)

    NM8: =MIN(SUMPRODUCT((OFFSET($A6,0,31*($A$3-1)+1,1,31)=NP17)+(OFFSET($A6,0,31*($A$3-1)+1,1,31)=NP18)),8) <--delete this function.

    second : i change your
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to check 2 parametres..

    Now i upload new edit example file and check e.g May 2018 he's got : SUM Sat/Sun = 4 and 1 Holliday (Orange cell) the Day Off Year cell it must be 2. 1 because has 5 Sat and Sun "W" and 1 because has one "W" in Holidays.

    if you go to june 2018 Total Sat/Sun Month is > 8, THEN SUM Sat/Sun go max 5, and Day Off Year cell it must be 2 again... check my new file
    Last edited by hackertom; 09-21-2018 at 11:17 AM.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    What new file?

  14. #14
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    SORRY my mistake not upload file. look now... i add this function to Day Off Year :

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    for now July 2018 work great and is what i want, the correct answer is 4. but if i change month ang go to August 2018 then Day Off Year go to 9! and no keep previus July 2018 count (4) and start from 4 count for august...


    And last problem is with Employee Holidays (EH) if add this symbol on Sat Sun no count if i add to working days start count -1! i do not want tocount this days! or if i add other latter in working days count go to -1... this is bug
    Attached Files Attached Files
    Last edited by hackertom; 09-22-2018 at 03:50 AM.

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    I'm beginning to see what you want. But... A couple of posts ago I asked you to explain what eaxh of the 5 formulae in NJ8 to NN8 are meant to be counting. Please DO NOT describe the formulae that are already there. I can see the formulae. What I do not understand is what you THINK that they are doing.

    Is NJ8 the count of Saturdays in the chosen month... or something different?

    Is NK8 the count of Sundays in the chosen month... or something different?

    What is NL8 meant to be a total of?

    What is NM8 meant to be? How is it different from NL8?

  16. #16
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    ok sorry you are right,

    yes NJ8 count only Saturdays in the chosen month

    yes NK8 count only Sundays in the chosen month

    NL8 is a count Saturdays or Sundays my Employee work, and i pay extra for this work Saturdays or Sundays,but here is a limitation i pay max 4 if the month has total 8 Saturdays or Sundays, and if has >8 Saturdays or Sundays i pay 5. if work more of 4 or 5 i give my Employee 1 day off per extra not working day and not money.Also a few months a year have been continuously ΝΜ8 >8 but there i pay to my employee 5 Saturdays or Sundays and the next month 4. (the last is hard to check with exhel i think but i write there if you help)

    NM8 counts the day off my Employee, different from NL8 is NL8 count Sat and Sun days who i pay and not give day off...

    my English is not so good... I hope you understand what I mean

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    OK. We are not there yet, but this is at least part of it.

    Your sheet set up was very confusing. BUT the way it is set up has allowed me to exploit much more simple formulae in giving you the desired result.

    NJ, NK and NN are correct (I think).

    NL MIGHT be correct. It is the number of Sat/Sun worked to a maximum of 4 or 5 (depending on no of Sat/Sun in the month). The balance is shown in NN.

    NM. I still have no idea what this is supposed to be doing....

    it might be easier to follow if you entered a few employees for any one month and gave the expected results....

    NN and NL are array formulae and need to be set using CTRL-SHIFT-ENTER
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    oh!..You are very smart my friend... i edit your function to count R latter with this :

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but when I go to the next month the prices of the previous month are gone... can i keep this values and start next month count from there? Also if add W on orange cell no count why? if work holiday day i give one day off extra
    Last edited by hackertom; 09-22-2018 at 02:02 PM.

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    Forget your modification, PLEASE. I can see that it will NOT work. Did my formula work? In which circumstances did it not work?

    For the LAST time, provide sample inputs and expected results.
    You MUST provide samples and expected answers. I WILL NOT play guessong games forever.

  20. #20
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    friend relax, i ask you because your formula work but not keep values in next month. And not count holidays if W or no count if R

    i upload a new file with examples and total values
    Attached Files Attached Files

  21. #21
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    We have a major problem. The way your sheet is set up is that the days and dates are ONLY present on the selected (visible) month. On the other (hidden) months these cells are blank. Also, your data are arranged in columns, not in rows, so Excel functions like SUBTOTAL do not work. In my opinion, you need a major re-think about this sheet ... creating a continuous list of dates/days instead of the current system when they exist only when the month is selected.

  22. #22
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    yes Glenn but if change something now my functions they will stop working,and it will be like starting from the beginning...

  23. #23
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Stop counter and add to other cell

    Maybe so... but ultimately, it might be worth it. Does this look like a possibility? It is arranged witht he data vertically, not horizontally. NOW, all data can be kept when filters are applied.... or only visible data are counted, depending on what is needed.

    Could you live with something like this??
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: Stop counter and add to other cell

    hahaha... thank for your help Glenn but this is not practical for me, i try if i fix my file, thnak you very much fοr your help let me not tire you anymore..

    have a nice day

+ 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. How to stop counter if date received cell has a date
    By Larissa19 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2018, 05:49 AM
  2. [SOLVED] Changing HH:MM:SS counter format into MMM - 3 digit minute counter (eg. 120 minutes)
    By macropulos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2017, 12:09 PM
  3. Replies: 8
    Last Post: 09-28-2016, 06:19 PM
  4. [SOLVED] Locating Duplicate Cell Data with a Cell Counter and Highlight
    By garrett.grillo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2012, 01:46 AM
  5. [SOLVED] Locating Duplicate Cell Data with a Cell Counter and Highlight
    By garrett.grillo in forum Excel General
    Replies: 1
    Last Post: 04-30-2012, 12:52 AM
  6. Start/Stop Time counter
    By SVTF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-19-2008, 07:38 PM
  7. Cell counter
    By Haza in forum Excel General
    Replies: 2
    Last Post: 01-20-2006, 10:20 AM

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