+ Reply to Thread
Results 1 to 22 of 22

Conditional Formatting

  1. #1
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Conditional Formatting

    Hello!

    This would be my 1st post, so if I did anything wrong pls guide.

    Referring to the excel sheet, Overview of the excel sheet - Inventory activity, Number of product with size mix, Sales orders from customer, Total Stock, Stock In and Stock Out ( based on the orders ).

    Forum_Formatting.xlsx

    I want to further enhance the formulation on the table to give a better over view in the order section.

    Currently there is conditional formatting on the excel whereby any value inputted on a cell, cell automatically changes to a colour.

    1. How can I insert a formula to change the cell colour to green if. Eg CS1 Order Product, Inventory - CS1 Order >=0 and if its negative there will maintain.

    2.The same as above but for CS2 Inventory - CS1 orders - CS2 orders >=0. For CS3, its same but now it will be inventory - CS1 order - CS2 order - CS3 order >=0.

    Eg - Line 11 Product 12 001 Inventory Total 11, CS1 total 1 (changes to green, 11-1=10), CS3 total 2 (Changes to green, 11-1-2=8), CS5 total 10 ( No Change, 11-1-2-10=-2), CS6 total 6 (No Change, 11-1-2-10-8=-10)

    Not sure if this can be done but can we;

    3, Using the Eg above, Will be able to accommodate CS1 and CS3 but because the formula follows chronological order CS5 and CS6 will not have insufficient stock to deliver. Is there a formula to calculate that weeks delivery and match the best possible,in this case CS6 changes colour and CS5 no change? I think it might complicate the report but wondering if there is a way to do so.

    Extra notes

    - All the week delivery is done on a Monday, the inventory tracker would only have 4 dates in months (unless its a 5 week month).
    - Once the delivery is done, the whole column will be removed and paste into another area in the same sheet.
    - The total inventory is picking up from another cell
    - As the orders come, it will be plunked into the relevant week ( usually at the end of the order line, rarely in between current orders so the team just adds a collumn and plucks in the data.)

    thanking in advance

    If this will make it complicated, please do suggest another method of tracking. Not in a formatting way but some other tracker on a different sheet.

    The goal here is to have a quick overview on the deliveries/customer orders that are good to go instead of manual subtracting the inventory with sales by line...Time consuming and tedious. :-)

    thank you again. Looking forward for the input.

  2. #2
    Registered User
    Join Date
    08-24-2014
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Conditional Formatting

    pls check the attached file. Forum_Formatting(1).xlsx
    i applied conditional formatting - (1) Green, if sufficient stock (2) Red if no stock
    not sure if ur 3rd point is met

    And one more thing... in ur last line u wrote
    instead of manual subtracting the inventory with sales
    when we are using excel, values are automatically updated.
    No need of manual subtraction.
    ☚ Don't forget to rate person who helped u Click ★

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting

    Maybe this will be of help.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting

    Hey guys, let me play around with couple of scenarios and get back to you...but thanks a lot guys...much appreciated....
    Last edited by Pisasu69; 09-28-2014 at 06:18 AM.

  5. #5
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting

    Sry guys I am taking some time to revert...been really busy with work lately...

    Quick Question - For me to apply the conditional formatting formula on each column, do I have to manual pluck in the formula by column? I only can drag down the condition right?

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Conditional Formatting

    Have you tried Format Painter? It's very handy for this sort of thing.

  7. #7
    Registered User
    Join Date
    08-24-2014
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Conditional Formatting

    I could not understand ur question completly.

    But still i will reply to what i understood.

    1st select the column in which conditional formating is already their.

    then Conditional Formating >> Manage Rules

    in window (or BOX) Edit "applies to"

    pls see the attached image
    ScreenHunter_54 Oct. 15 20.24.jpg

  8. #8
    Registered User
    Join Date
    08-24-2014
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Conditional Formatting

    dont know why image is not getting attached
    Attached Images Attached Images
    Last edited by xlrocks; 10-15-2014 at 11:08 AM.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting

    This is a test picture using the Paperclip for file attachments.

    It uploaded properly so I deleted it.

    How are you attaching the picture file?

  10. #10
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting

    Hey Guys

    Once again, apologies for the delay in my respond especially since I am the one asking for the help :-)

    I get how the Conditional Formatting works, and how i can copy the formatting. thanks xlrocks and FlameRetired.

    The methods and formula was clear and it gets what I want done..I am using newdoverman formula as it if much simpler but xlrocks your method works like a charm as well....

    I tried this formula for the past week and everything went well until the weekly update was done. The problem I encounter ;

    Please refer to pic, sheet ''Before Shipment' the conditional formatting is applied to Column L(order3),M(order4), and N(order5). On a weekly basis, after the stock count and updates are done. The shipment which are shipped out will be moved to another column in the same excel sheet.(Between column D to G)

    Please refer to pic After shipment sheet - Order 3 was moved to Column G. This of course will affect the formatting on Column M and N.

    How can i maintain the conditional formatting as how it was before shipment even after moving order 3?

    BeforeShipment.pngAfterShipment.png

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting

    Your pictures are not available to view.

  12. #12
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting

    I did upload them and I can view them on the post..previously I could upload Xl files but now I can find the way to do that...any particular reason? Can I PM you the files?

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting

    In case you are not uploading the XLSX file properly, I'll attach the instructions here. There isn't the capability to upload a file in PM.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  14. #14
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting

    Will do newdoverman...hope the attachment has what is required otherwise please advice what should I add.

    I am trying if locking the cell formula will eliminate the issue but so far its not working, either I am not applying it correctly or this is wrong from the Beginning

    Forum_Formatting.xlsx

  15. #15
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting

    Maybe this is what you want. I'm taking a guess by trying to duplicate the 3rd worksheet.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting

    Did you make the changes in after shipment sheet? where the conditional formatting rule is ''cell value more than =0'' becomes green. If yes then sorry that's not the result i am looking at.

    The results I am looking for; (referring to the same earlier xl attachment)

    1. Before shipment sheet - Lets assume this is my current working sheet. Just to recap;

    *Column A:D is the product description
    *Column E:F is the shipped out products. Lets call it ''Gone Area" for this explanation :-)
    *Column H is the total sales and shipped qty. Its a SUM of the Gone Area
    *Column J is the current total stock level in warehouse. The date and stock will be updated after the weekly stock count. This column cell values refers to another column in the same worksheet. For this exercise i remove that portion of the worksheet.
    *Column L:R is the orders that have yet to be shipped out. This is where we make the necessary planning to ensure there are sufficient stocks in before the shipment date using the customer order details. Lets call this ''Waiting Area'', As new orders comes in it will be added in to the last column in waiting area.
    *Column T is the sum of Waiting Area
    *Column U is a formula of Column J - T = x. Basically to plan on ordering to cover the necessary stock.

    Assuming this my current worksheet. I have applied 3 conditional formatting to the Waiting Area; (Using cell L11 as the example)

    1. L11=0 result format white fill (the rule stops if its true)
    2.=AND(J11<>'''',J11-L11>=0) result format green fill
    3.Cell value greater than =0 result format red fill

    The same rules applies to following column in the Waiting Area only rule 2 will be longer, using N11 as example. the 2nd rule would be =AND(J11<>''''',J11-L11-M11-N11>=0) result format green fill. Everything is awesome up to here.

    Once the shipment is out, the order column will removed from the Waiting Area to the Gone Area. This is done by cut and pasted to the last column in the Gone Area. (in this case column L, Order3 is moved column G)

    Please refer to the after shipment sheet, Order3 was removed and parked in the Gone Area, once this done the conditional formatting rules applied earlier to the Waiting area gets all messed up cause all the column moved about. How do I maintain the earlier conditional formatting results even if orders from Waiting Area is moved to Gone Area. When the orders are moved, the formula must calculate the same manner. Example of the result looking for;

    Rule 2 before shipment sheet, Cell N11 (Order5) =AND(J11<>J11-L11-M11-N11>=0) result format fill green.
    Once Order3 is moved.
    Rule 2 How it should be sheet, Cell N11 (Order5) =AND(K11<>K11-M11-N11>=0) result format fill green.

    I hope you or anyone else in this forum can come up with a solution for this.

  17. #17
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting

    You can't just switch things around like that and have it work. Conditional formatting is based on "Conditions" and you are totally changing the conditions in the process of changing things around.

  18. #18
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting

    Erm...if that's the case what do you suggest to have a similar result...I just need it to show on order level where the stock is insufficient....thanks

  19. #19
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting

    The enclosed is a proposal for the arrangement of your data. All the inventory data is to the left, separated from the orders and shipments. Row 6 has codes O S. O is for Order, S is for Shipped. No movement of columns is necessary, just change the code in row 6. Calculations can be made to take advantage of these codes.

    Freeze Panes has also been applied at H7 so that as data is added, the working area is always in sight both left/right and top/bottom.

    All formatting has been removed from the data cells so that you can decide how the calculations are to be made and what you want to have conditionally formatted.
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting

    I understand what you are trying to do but unfortunately I cant change the layout of the report. If that is required then I would have to dump this idea for now. thank you again for all the help you have given me, i learned a number of things

  21. #21
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting

    Thank you for the feedback. Maybe in the future, you will come up with a more workable idea to satisfy your needs.


    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  22. #22
    Registered User
    Join Date
    09-24-2014
    Location
    Selangor Malaysia
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting

    Hope so I can come out with something...till we meet again

+ 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. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  2. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  3. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  4. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  5. Replies: 3
    Last Post: 05-15-2012, 04:13 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