Microsoft Excel - Need experts solutions in 2 excel problems

Asked By firas said on 24-Jun-12 11:46 AM
Earn up to 50 extra points for answering this tough question.
Hi All,

can anyone help me to solve my 2 excel problems,

First one I have a pcking list which have 7 checklist(CL) like the example below

Packing CL1  CL2  CL3  CL4  CL5  CL6  CL7  Score

Now if all 7CL's are yes available then the score will be 100%, if 6CL's available the score will be 85.71% ((100/7)*6), if 5CL's available then the score will be 71.42% ((100/70*5) and like that.

Second problem, liking it with the first one I might have more than one packings in a shipment like example below

shipment 1  CL1 CL2 CL3 CL4 CL5 CL6 CL7 Score
Packing 1
Packing 2
Total Shipment 1

Shipment 2  CL1 CL2 CL3 CL4 CL5 CL6 CL7 Score
packing 1
packing 2
packing 3
Total Shipment 2

is there a formula like when once i finish with packing 1 the next below cell will let me choose packing 2 or total in order to decrease manual job, total will be the sum of yes's per CL's in order to have the average score.

That's all,

Thanks everyone in advanced for your help, and looking for the solutions soon :)


Pichart Y. replied to firas said on 24-Jun-12 10:50 PM
Hi filas said,

Just 1st approach in quick with formula to work arround :)    ...(I will come back with macro later)

  • Format column A with custom format like this "Shipment "#
    • Then to input the shipment number, just input number 1, 2, 3 ect.
  • Column B, input this data validation, list as "Packing " and "Total "
  • C4 input this function =IF(ISNUMBER(A4),1,C2+1)
    • you will get the number for Packing
  • D4 input this =IF(A4<>"",A4,D3)
    • you will get the number for shipment
  • E4 input this =IF(B4="Packing ",B4&" "&C4,IF(B4="Total ","Total Shipment "&D4,""))
    • You will get packing no or total shipment no. depends on what you select in column B
  • for the calculation the "Yes" use this formula =100%/7*COUNTIF(F4:L4,"Yes")
** of course you can hide the column C and D 

Hope this help

pichart y


Pichart Y. replied to firas said on 25-Jun-12 07:08 AM
Hi firas said,

here is the piece of code...

  • For I cannot attach the file...I give you the code here
    • in module 1
      • Sub autoPacking()


        ShipmentRow = Range("A" & Rows.Count).End(xlUp).Row
        Shipment = Cells(ShipmentRow, "A").Value
        If ActiveCell.Value = "Packing " Then
        ActiveCell.Value = "Packing " & ActiveCell.Row - ShipmentRow + 1
        ElseIf ActiveCell.Value = "Total " Then
        ActiveCell.Value = "Total " & Shipment


        End If
        Cells(ActiveCell.Row, "J").FormulaR1C1 = "=100%/7*COUNTIF(RC[-7]:RC[-1],""Yes"")"
        Cells(ActiveCell.Row, "C").Select
        End Sub
    • in sheet that you work, put this event procedure
      • Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Column = 2 Then Call autoPacking
        End Sub
  • Hope this help
pichart Y.
Pichart Y. replied to firas said on 25-Jun-12 10:32 AM
Hi firas said,

Now I can attach the file...here it is ---> Vba_PackingMonitoring (version 2).zip

What you can do with this file...
  • in column A input the shipment No. as usual
  • click in column B you will find the list for you to chose, 
    • if you choose the packing, then instead of packing  there, you will find the No. of packing too
    • it will count packing and put the number..
    • At the same time, column J will be filled, the formula to cal % of yes
    • if you select the total, will be automatically "Total Shipment #" there for you.
  • I still have question, what do you want to calculate in the row of total... let me know if you need any help.
  • How dose this file work...
    • I create the module to do..all the process above using this code
      • Sub autoPacking()
        ShipmentRow = Range("A" & Rows.Count).End(xlUp).Row
        Shipment = Cells(ShipmentRow, "A").Value
        If ActiveCell.Value = "Packing " Then
        ActiveCell.Value = "Packing " & ActiveCell.Row - ShipmentRow + 1
        ElseIf ActiveCell.Value = "Total " Then
        ActiveCell.Value = "Total " & Shipment
        End If
        Cells(ActiveCell.Row, "J").FormulaR1C1 = "=100%/7*COUNTIF(RC[-7]:RC[-1],""Yes"")"
        Cells(ActiveCell.Row, "C").Select
        End Sub
    • Then use event procedure to run that module
      • Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Column = 2 Then Call autoPacking
        End Sub
Hope you like this..

Pichart Y.
wally eye replied to firas said on 25-Jun-12 10:58 AM
How are you indicating that a checklist is available?  Do you have a set of data containing checklists, of do you just want the 1-7 list with yes/no's?

With the 1-7 list, you can just use a countif:

=countif(A2:a8,"Yes")/7

formatted as a percentage.  With a dataset, which would probably be a better data model, you would need a more extensive formulas, but it would be more robust.

Same thing with your second consideration, you could use countifs with multiple criteria for shipments and packing lists.
firas said replied to Pichart Y. on 25-Jun-12 11:57 AM
Hi Pichart Y.

You did it man, you are the expert :), Thank you so much for your help. Highly apprechiate it.

Best regards,

Firas
firas said replied to wally eye on 25-Jun-12 12:02 PM
Thanks Wally eye for your comment.

Best regards,

Firas
help
What I have is a list of daily chores any questions or give us an idea of the layout you want HTH John keywords: Microsoft Excel, daily chores description: Checklist What I have is a list of daily chores that three people are in charge
remove the " " value Microsoft Excel 28-Oct-12 07:42 PM Hi All, I need your help, I would like to remove blank in below formula : = (CONCATENATE(IF('Checklist General'!K83 = "y";'Checklist General'!$K$81;" ");CHAR(10);IF('Checklist General'!L83 = "y";'Checklist General'!$L$81;" ");CHAR(10);IF Checklist General'!M83 = "y";'Checklist General'!$M$81;" ");CHAR(10);IF('Checklist General'!N83 = "y";'Checklist General'!$N$81;"");CHAR
I am using excel for the first time and do not know where to find things very well, this have used this source of information as well. Thank you for your help David Whedon Excel New Users Discussions Microsoft Excel (1) Office (1) Excel (1) Whedon (1) Meen (1) HI David You're in XL and your asking about a Automotive maintenance checklist. Do you meen a checklist template for Automobile, your question is not clear. HTH john
Hi, I'm new to data validation and would select "fitter" I want the prompt / msgbox to say "Attention - Call - ext7654, please do preliminary checklist prior to arrival!" . If I select "fitter" I want the prompt / msgbox to say "Attention - Call - ext7677, please do preliminary checklist prior to arrival!" I intend to have several of these on a report to help been made. Any advice is welcome. Regards, Warren Data validation is a feature available in Microsoft Excel. It allows you to do the following: • Make a list of the entries that restricts is valid based on calculation in another cell. Refer this for complete reference: http: / / support.microsoft.com / kb / 211485 Please do the following for getting the Error alert: Select the cells http: / / www.contextures.com / xlDataVal04.html Please go through this article. I got this from excel help. This describes how to show alert / information message box. Hope this helps on what
I am creating a worksheet in which I need to have a series of three shape and size beside the text I am using, as sort of a multiple choice checklist. I have inserted the three circles into each individual cell, but instead of trying feverishly each set below the previous one in each row. I hope that makes sense. . . . . . HELP ! Excel Worksheet Discussions Microsoft Excel (1) Excel 2007 (1) Excel 2003 (1) Shapes (1) Excel (1) Worksheet (1) Eve, Ensure the Drawing toolbar is visible
I am creating a checklist in Excel 2007 and would like to know how to add a date in an adjacent cell cell. Does any one know of a simple formula? Would apreciate it very much. FS. Excel Miscellaneous Discussions Microsoft Excel (1) Excel 2007 (1) Worksheet (1) ISNUMBER (1) VBA (1) Apreciate (1) If A1 cell value is create a static date pointed out on John McGimpsey's site. http: / / www.mcgimpsey.com / excel / timestamp.html One uses circular references and worksheet function NOW() Other uses VBA Gord Dibben
Hi everyone, I have a VBA user-form that following: Example #1: If cellls A1 - A5 contain data, then options 1 - 5 in the checklist turn red (as in the text turns red). Example #2: If the following cells contain data: A1, A3, A4, A8, and A10; then the following options in the checklist should turn red: 1, 3, 4, 8, and 10. I'm just trying to figure initialize a bool variable to true. d) if the bool variable is true, turn the checklist from 1-5 red based on the upper functions If you name your checkboxes with UserForm1.Controls("CheckBox" & CStr(n)).ForeColor = RED End If Next End If End Sub keywords: Microsoft ExcelShapeRange, Intersect, Shapes, Microsoft Excel Conditional formatting, worksheet description: Conditional formatting of a userform in VBA. Hi everyone, I have
I am having a hard time figuring out how to sort tables that consist of more than one row in Excel 2003. It is like a checklist of things that need to be done, but in date order. Some dates have more in date order but keep the tables together. Is it possible to do this? Thanks Excel Miscellaneous Discussions Microsoft Excel (1) Excel 2003 (1) CRTL (1) Not without filling the dates into the empty cells. Easiest method
Hello All My company currently uses excel checklists to ensure that projects are completed fully. we have around 10 different checklists. each checklist (excel file) has 6 sheets, each sheet 15 questions or steps. most answers are Y, N checklists. I would like to create the checklists in access because their are too many excel files getting lost and if we change question / step. we have to change it multiple times. the employees need to enter a clients name and then choose the checklist. projects can take weeks to complete so when a checklist is chosen the steps that have already been completed need to be there. I have ClientID client_name I hope this makes sense. Any help is greatly appreciated Thankyou Access Discussions Microsoft Office (1) OtherLibraries (1) ThankyouWhat (1) ChecklistID (1) QstnID (1) ClientID (1) ChklstID (1) MVP
Text' formatted cells displaying numbers in scientific format Excel I use Excel to view statement information downloaded from my bank in CSV format. As some fields have long numeric strings that Excel displays in scientific notation (4988243043081440 displays as 4.98842E+15), I use Copy > Paste Special does it affect some cells and not others? How can I prevent this from happening? Excel Discussions Microsoft Excel (1) Excel 2007 (1) Office (1) Excel (1) Workbook (1) Macro (1) TRIM (1) ISBNs (1) Excel has a 15 digit precision