+ Reply to Thread
Results 1 to 19 of 19

Getting Colour wise totals referring to a "Colour Code"

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Getting Colour wise totals referring to a "Colour Code"

    Hi...

    Please kindle see the attached data table. How can I get the cumulative totals of the input, out put details referring to the "colour code" ??
    Attached Files Attached Files

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Getting Colour wise totals referring to a "Colour Code"

    Good afternoon Anuru

    You can only do this using macros.
    See attached.

    HTH

    DominicB
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Getting Colour wise totals referring to a "Colour Code"

    Thanks a lot, can you please kindly tell me, what is 7, 3 and 23 in the formula. If I wan to add more colours, how can I expand this formula?How can I copy this formula to my original work sheet? Will the macro work then?
    Quote Originally Posted by dominicb View Post
    Good afternoon Anuru

    You can only do this using macros.
    See attached.

    HTH

    DominicB

  4. #4
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Getting Colour wise totals referring to a "Colour Code"

    You can even use sheet formulas. I would go with SUMIFS function. Refer workbook attached, cells with formulas are colored in yellow.

    Note: The values you input initially were wrong.
    Attached Files Attached Files
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  5. #5
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Getting Colour wise totals referring to a "Colour Code"

    Hi Sarang,

    Million thanks for the solution. However, there is one more thing, that is..the data in the rows 4,5,6 etc cannot be predefined, as the data in these columns are kept adding every day, so, I want the cumulative of these columns to be kept adding to the summary of colour totals table when these data occur daily..Is there any solution to that??

  6. #6
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Getting Colour wise totals referring to a "Colour Code"

    Hi Sarang,

    Please see the attached actual document of the above related work out. In this, there is a formula in D10(highlighted in red) which I got from the Excel Forum. It calculates the totals in columns when they occur..can we get the concept of this formula for the above colour wise work out??

  7. #7
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Getting Colour wise totals referring to a "Colour Code"

    Hi sarang, here is the attachment...
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Getting Colour wise totals referring to a "Colour Code"

    Sorry, I don't know how to attache that document with a reply message..here is the formula...

    =IFERROR(SUM($H$9 : INDEX($H$9:$AL$9, MATCH(10^100, $H$9:$AL$9))),0)

  9. #9
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Getting Colour wise totals referring to a "Colour Code"

    Quote Originally Posted by Anuru View Post
    However, there is one more thing, that is..the data in the rows 4,5,6 etc cannot be predefined, as the data in these columns are kept adding every day, so, I want the cumulative of these columns to be kept adding to the summary of colour totals table when these data occur daily..Is there any solution to that??
    You have Input in row 4, Output in row 5 and Polybag Out in row 6. You say you don't have the values predefined - are they calculated / populated via formulas? You also say want a cumulative sum. Do you want cumulative sum for each color code?

    In that case, you need to give more data and depict what you actually want the output to be in the worksheet.
    Last edited by Saarang84; 05-24-2014 at 01:10 PM.

  10. #10
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Getting Colour wise totals referring to a "Colour Code"

    The values in date columns will occur when the days are advancing, I am not able to say what will be tomorrow input, out put and poly bag etc, these values are collected from the production line and entered in to this work sheet on daily basis, and we follow up production status accordingly...Yes, I need the cumulative of colours wise values in "day columns"...

    Quote Originally Posted by Saarang84 View Post


    You have Input in row 4, Output in row 5 and Polybag Out in row 6. You say you don't have the values predefined - are they calculated / populated via formulas? You also say want a cumulative sum. Do you want cumulative sum for each color code?

    In that case, you need to give more data and depict what you actually want the output to be in the worksheet.

  11. #11
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Getting Colour wise totals referring to a "Colour Code"

    Quote Originally Posted by Anuru View Post
    The values in date columns will occur when the days are advancing, I am not able to say what will be tomorrow input, out put and poly bag etc, these values are collected from the production line and entered in to this work sheet on daily basis, and we follow up production status accordingly...Yes, I need the cumulative of colours wise values in "day columns"...
    Hi Anuru,

    Can u populate some dummy numbers in the sheet? It would be difficult to code a formula without numbers. Also, you clearly mention in what cells & rows you need to code formulas and give us the logic for the same.

    Note : Kindly change the font type (like Arial), its difficult to read the text in your actual workbook.

  12. #12
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Getting Colour wise totals referring to a "Colour Code"

    Hi Saarang,


    Please kindly refer to the attached work book.

    In this data sheet, the daily production values are typed on daily basis in the columns starting from M. As you can see, there are some indicators shown in the cells from D14 to D24.

    What I need here is, I need to show the values in the cells from M14 to M24, N14 to N24, O14 to O24 etc to be shown in the cells from K14 to K24 based on the last date of update of the work book. For an example, K14 to K24 now shows the values in column O14 to O24(May 21st). Here I have just copied the details from O14 to O24 for the purpose of only showing you.

    I need the values to be displayed automatically in column K14 to K24 based on the running date, when the days are advancing..

    I started a new thread for this, but no body is posting a reply....
    Attached Files Attached Files

  13. #13
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Getting Colour wise totals referring to a "Colour Code"

    Hi Anuru,

    Try this formula,
    Formula: copy to clipboard
    =OFFSET(K14,0,COUNTIF($M$14:$BI$14,">0")+1)

  14. #14
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Getting Colour wise totals referring to a "Colour Code"

    Hi Saarang,

    Thanks a lot for the formula. However, it doesn't work in K15,K16 and K17. These cells include a little bit complicated formulas of efficiency calculations,that may be the reason. Also, if there are blank columns, the formula doesn't seem to work. But, I just typed "1" in blank columns, then it works(except K15,K16 and K17).

    Is there a further solution?

    Updated work book is attached herewith for your reference...
    Attached Files Attached Files

  15. #15
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Getting Colour wise totals referring to a "Colour Code"

    In K14, use the below formula and copy down :
    Formula: copy to clipboard
    =OFFSET(K14,0,COUNTIF($M14:$BI14,">0")+1)
    Also don't forget to match the formatting type of the cells accordingly (decimal places for numbers, percentages (%), etc.)
    Last edited by Saarang84; 06-12-2014 at 10:01 AM.

  16. #16
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Getting Colour wise totals referring to a "Colour Code"

    Hi Experts,

    Can somebody help me in the the above requirement....??

  17. #17
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Getting Colour wise totals referring to a "Colour Code"

    Hi Anuru,

    Refer the updated workbook attached.
    Attached Files Attached Files

  18. #18
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Getting Colour wise totals referring to a "Colour Code"

    You need to remove the formula for the unpopulated cells

+ 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. Getting Colour wise totals by changing font colour
    By Anuru in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-24-2014, 11:13 AM
  2. [SOLVED] Cond Format Colour C if A blank, or Colour diff if A blank BUT B contains "text"
    By marsham in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2013, 03:19 PM
  3. Replies: 0
    Last Post: 01-09-2013, 06:52 PM
  4. Adapt code to include "number" and colour formatting
    By dpcp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2011, 07:12 AM
  5. Replies: 4
    Last Post: 04-28-2009, 07:51 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