+ Reply to Thread
Results 1 to 145 of 145

Show working-instructions depending on GHS-hazard-pictograms

  1. #1
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Lightbulb Show working-instructions depending on GHS-hazard-pictograms

    Dear members of the forum,

    I am trying to solve a quite complicated idea (for me) and hope to find some inputs for this here:

    The idea is to make a tool, where you can choose between different GHS-hazard-pictograms for a product (max 5 per product) and then show in which rooms (they have different safety levels) the product can be handled.
    All of the GHS-hazard-pictograms, rooms and B-Terms (I will explain later) are stored in a database.
    Sometimes these products can be handled in a room but need additional safety precautions. Those are numbers from 1-11, labeled next to the room in the database. This information should be shown next to the rooms where it can be handled.

    Last part: Almost all of the GHS-hazard-pictograms have additional requirements (B-Terms), which are stored in a separate database. Depending on the chosen GHS-hazard-pictograms it should be shown which additional requirements are necessary. The B-Terms sometimes change if the product is solid or liquid, so this has to be taken into account.

    To explain it better, I made a sample workbook.

    Because its just an idea, please feel free for new arrangements in the database etc.

    Thank you in advance for your help and best regards,

    David
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Does somebody has an idea?
    Every help is greatly appreciated!

  3. #3
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    For the first part I think I am almost there:

    With:

    =IF(B4='Database'!A2:A88;IF('Database!'B2:B88="Yes";"'Database'!B1;""))

    This is just for one GHS-hazard-symbol and one room. And it shows all the rooms with FALSE for not true and nothing for true.
    I would like to show just the rooms with the additional information in the according box.

    Thank you in advance and best regards,

    David

  4. #4
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I got a little bit further to the desired solution:

    With:

    =IF(B4='Database'!A2:A88;IF('Database!'B2:B88="Yes";"'Database'!B1;'Database'!B1);"")

    In this case I somehow have the same output for False and True, but it seems to show if the first GHS-hazard-symbol can be handled in the first room.
    The problem is, that I get a list with Room 1 and a lot of blank cells which leads to a overflow in the box...

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    There is a problem in that D4 and F4 do not exist on the Database sheet. That said, if you change A54 on Database to Reizend, Auge 2B, you can test this:

    =LET(f,FILTER(Database!B2:U88,(Database!A2:A88=B4)+(Database!A2:A88=D4)+(Database!A2:A88=F4)+(Database!A2:A88=H4)+(Database!A2:A88=J4)),b,BYCOL(f,LAMBDA(c,SUMPRODUCT((c="Yes")*(c<>""))=ROWS(f))),TRANSPOSE(FILTER(Database!B1:U1,b=TRUE)))

    =LET(f;FILTER(Database!B2:U88;(Database!A2:A88=B4)+(Database!A2:A88=D4)+(Database!A2:A88=F4)+(Database!A2:A88=H4)+(Database!A2:A88=J4));b;BYCOL(f;LAMBDA(c;SUMMENPRODUKT((c="Yes")*(c<>""))=ZEILEN(f)));MTRANS(FILTER(Database!B1:U1;b=WAHR)))

    It only gets you partway there, but one step at a time!
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Ali, thank you for your answer!

    For now I just got #CALC! as an answer.
    Excel told me that this is due to the array or the lambda.

    But I´m still trying - fingers crossed.

    Thank you,

    David

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    That should not be the case - did you open the workbook I attached? You should see this:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    L
    8
    AliGW
    9
    Room 1
    10
    Room 2
    11
    Room 3
    12
    Room 4
    Sheet: Search

  8. #8
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Your workbook is working - if I implement it to my sheet, i get #CALK!

  9. #9
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    New learning: #CALK! just means that there was no match in the whole database.
    If I change one GHS-hazard-symbol to Explosive, I also get #CALK!

    Is it possible to change that to: "Not possible to be handled in any room"?

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Of course!

    =LET(f,FILTER(Database!B2:U88,(Database!A2:A88=B4)+(Database!A2:A88=D4)+(Database!A2:A88=F4)+(Database!A2:A88=H4)+(Database!A2:A88=J4)),b,BYCOL(f,LAMBDA(c,SUMPRODUCT((c="Yes")*(c<>""))=ROWS(f))),IFERROR(TRANSPOSE(FILTER(Database!B1:U1,b=TRUE)),"No Room Suitable"))

    =LET(f;FILTER(Database!B2:U88;(Database!A2:A88=B4)+(Database!A2:A88=D4)+(Database!A2:A88=F4)+(Database!A2:A88=H4)+(Database!A2:A88=J4));b;BYCOL(f;LAMBDA(c;SUMMENPRODUKT((c="Yes")*(c<>""))=ZEILEN(f)));WENNFEHLER(MTRANS(FILTER(Database!B1:U1;b=WAHR));"Kein Passendes Zimmer"))

  11. #11
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Oh Ali, you are amazing! Thank you very much for your help so far!
    And thank you for the german translation

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Kein Problem - gern geschehen.

    I don't have time just at the moment to look into it any further, but someone else will chip in.

  13. #13
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    You do a really great job here! I have to give some reputation to someone else before I can send some to you - but I wont forget :D

    And I cant wait to finish this idea - so far I think we have a solid base!

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Got a bit further:

    =LET(f,FILTER(Database!B2:U88,(Database!A2:A88=B4)+(Database!A2:A88=D4)+(Database!A2:A88=F4)+(Database!A2:A88=H4)+(Database!A2:A88=J4)),b,BYCOL(f,LAMBDA(c,SUMPRODUCT((c="Yes")*(c<>""))=ROWS(f))),r,TRANSPOSE(FILTER(Database!B1:U1,b=TRUE)),h,HSTACK(r,TRANSPOSE(FILTER(DROP(f,,1),DROP(b,,-1)=TRUE))),v,IFNA(VLOOKUP(TRANSPOSE(FILTER(DROP(f,,1),DROP(b,,-1)=TRUE)),Database!X4:Y14,2,0),""),IFERROR(HSTACK(r,BYROW(v,LAMBDA(r,TEXTJOIN(", ",1,r)))),"No Room Available"))

    =LET(f;FILTER(Database!B2:U88;(Database!A2:A88=B4)+(Database!A2:A88=D4)+(Database!A2:A88=F4)+(Database!A2:A88=H4)+(Database!A2:A88=J4));b;BYCOL(f;LAMBDA(c;SUMMENPRODUKT((c="Yes")*(c<>""))=ZEILEN(f)));r;MTRANS(FILTER(Database!B1:U1;b=WAHR));h;HSTACK(r;MTRANS(FILTER(DROP(f;;1);DROP(b;;-1)=WAHR)));v;WENNNV(SVERWEIS(MTRANS(FILTER(DROP(f;;1);DROP(b;;-1)=WAHR));Database!X4:Y14;2;0);"");WENNFEHLER(HSTACK(r;BYROW(v;LAMBDA(r;TEXTVERKETTEN(", ";1;r))));"Kein Passendes Zimmer"))

    I am aware of the duplication - that needs to be resolved.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    But that looks amazing so far! I've tried to find a solution to match the additional information as well, but i wasn`t successful.
    Your solution works for me as well - I have also implemented it already

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I'm not sure how much further I'll be able to get with this one on my own - I'll put out a call for help.

  17. #17
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I found two small bugs in the current formula:

    1) Sometimes not all the additional information is provided - I think its due to if sometimes a hazard-class has two additional information (like 4,5) and the other one has just one (like just 4).
    In this case, not all the information will be next to the room.

    2) Sometimes, if a room has a single Yes for one GHS-hazard-symbol the room will be able to handle the chemical, although for example for all the other selected symbols its No -> so it should be not allowed to handle the chemical in this room.

    But I will check again and try to verify the problem with a concrete exapmle.

  18. #18
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Oh haven´t seen your message.
    Never mind - I´m not in a hurry to finish this, but I´m really looking forward to implement this in the company
    Thank you again for your help so far!

  19. #19
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Here is another solution for the possible rooms (without duplicate remarks)

    Please try
    Please Login or Register  to view this content.
    Attached Files Attached Files

  20. #20
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Here is a solution for the special requirements:

    Please enter in Database!V1 "Powder" and in Datebase!W1 "Liquid" and try:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  21. #21
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Good morning Hans,

    thank you for this early help!
    I've already implemented the solution for the rooms - its working fine so far!
    There is just one small thing: for example if I enter "Ätzend, Haut 7C" and "Organische Peroxide EF" in the first two cells, it shows me "No rooms available" for the first three cells and then Room 6,7 and 9 are fine.
    Is it possible to just show rooms which are allowed and only if there is no room available to say "No rooms available"?

    I will try the special requirements in the meantime!

    Again thank you and best regards,

    David

  22. #22
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Special Requirements work just amazing - thank you very much!

  23. #23
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Try this:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  24. #24
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Thank you Ali, I think that this will solve the last problem!
    I will play a little bit with it and check if everything is working fine
    After that I will mark this thread as solved.

    For me your help does not come naturally, so I am very thankful for both of your help
    You do an amazing job in this forum!

  25. #25
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Glad to have helped.

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

    Thanks for the kind rep comment.

  26. #26
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Thank you very much for the challenging question,
    it was very fun and educational to find a solution for it. .

    And thanks for the feedback and rep . Glad to have helped.

  27. #27
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Talking Re: Show working-instructions depending on GHS-hazard-pictograms

    It seems to work fine - I could not find any problems.
    I will close the thread now and thanks again - I already recommended this forum many times :D

    All the best and until the next challenge!

    David

  28. #28
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I found another problem - I think I need your help again...

    In the last sample-book from Ali: If you choose "Organische Peroxide CD", then the chemical should be possible to be handled in room 2, 3, 4, 6, 7 and 9.
    At first room 2, 3 and 4 were not able to handle this chemical with the solution of Hans. But I think that this is due to the "," between the numbers of the additional information.
    For the formula its 5.7 and not 5 AND 7.

    Sorry to ask again for help

  29. #29
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    To be honest, I'd have looked at completely reorganising the workbook for this. The biggest problem you have with this is the data layout itself. I'm sure Hans will be able to resolve the latest issue, but I can't help but think that there'll be more!

  30. #30
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I thought of adding some additional columns for each number, but I think that wont work due to BYCOL...

    I dont mind to reorganize the workbook, but its already looking pretty good

  31. #31
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    It is, but it's all unnecessarily complex. A better data layout would simplify everything.

  32. #32
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I am open to everything that works!
    Looking forward to the ideas from Hans

  33. #33
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Maybe if we use a combination of letters and numbers, like A1, A2 and so on instead of just numbers it may work.
    We fixed it for the special requirements in a similar way.
    Last edited by mrdaave; 10-06-2023 at 10:10 AM.

  34. #34
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Here are my corrected formulas:

    Available rooms:

    Please try
    Please Login or Register  to view this content.
    Special requirements:

    Please try:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  35. #35
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Good morning Hans,

    thank you again for your help!
    I've just implemented your formulas to my worksheet - it looks great so far! I really like the IFERROR for the special requirements. I have changed the "-" to "no B-Terms necessary" and it seems to be quite professional already

    The only thing missing which would make it perfect is, if we are able to add multiple safety precautions for one room and one safety precaution.
    For now if we look for example at room two and try to handle "Organische Peroxide CD" we can do this, but we have two additional safety precautions:

    - 5: not allowed to be warmed
    - 7: need to be in room 9

    As long as my database contain these to numbers as "5,7" excel thinks that this is one number and not two.
    So we get room 2 with no additional safety precautions because 5,7 is not existing (although 5 and 7 is in the database)

    Is there a way to fix this? Maybe if we us a combination of numbers and letters to differentiate between for example 5 and 7?

    Thank you again for your tremendous support,

    David
    Last edited by mrdaave; 10-09-2023 at 01:30 AM.

  36. #36
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    If (" , ",,x,XLOOKUP(FILTER(q,q<>"",""),Database!X4:X14,Database!Y4:Y14,""))
    should fix this problem I ran into another problem:
    My german Office always changes "," into ";" - I have tried to change it, but than the formula does not work

  37. #37
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I have another idea (but was not able to adapt it):

    For the B-Terms we use TEXTSPLIT. Maybe we can use the same formula for the special requirements as well.
    But I am not sure if we still have to use numbers and letters in this case.
    I am trying to understand these formulas but if I read them for too long I get confused 😅

  38. #38
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    My german Office always changes "," into ";"
    Always open the workbook provided and copy the formula from there to avoid locale difference issues.

    If you would like Hans to dissect a formula for you, just ask.

  39. #39
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Further: you have a Swiss German (or possibly Swiss French) locale where the separator SHOULD be a semi-colon, not a comma. This is why you should ALWAYS copy from the workbook, and NOT the thread.

  40. #40
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Hi Ali,

    I opened the workbook Hans provided and just copied the formula.
    The problem is also present in his workbook. I just was not sure if this is due to different language.

    And it would be great, if Hans or somebody else could check this formula and may find a way to filter these numbers correctly.
    As in #31-#33 mentioned I can also change the database if necessary.

  41. #41
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Which locale do you have? German or French? Or something else?

  42. #42
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I have German

  43. #43
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    OK. So define exactly what you mean by 'problem' with the formula - are you getting an error message? If so, which?

  44. #44
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I don't get an error-message.
    The problem is the followin:
    Some rooms have additional requirements (such as "max 10 g" etc.)
    I have listed them next to the rooms with numbers but sometimes there are more than one additional requirement. They are listed with a comma (for example: 5,7)
    Excel counts this as 5.7 and not 5 and 7 -> this leads to no additional requirements in the "Search-Sheet".
    I would need a solution to show all additional requirements listed next to the rooms.

    My idea was to add letters next to the numbers (for example A1 to A11) to get rid of the problem - but somehow this doesn't work as well

  45. #45
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    OK - then I suggest you just wait patiently until Hans chimes in.

  46. #46
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Good morning Ali,

    may you can ask Hans for his considerations?
    I don't want to disregard the forum rules but would be happy if somebody could help me to find a solution for the last problem.

    Thank you in advance and please excuse the additional request.

    Best regards, David

  47. #47
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    No, I can't do that, and nor can you. Whether or not a member chooses to respond is entirely at their own discretion.

    If Hans wishes to continue helping here, he will respond. It's above my head, but maybe others might help. What I can do is put out a general call for help.
    Last edited by AliGW; 10-11-2023 at 02:31 AM. Reason: Typo fixed.

  48. #48
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    That would be great - every help is appreciated
    Thank you for the support Ali!

  49. #49
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Have done so - fingers crossed. It's gone beyond my capabilities - sorry.

  50. #50
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Thank you very much! You are doing great work in this forum - hopefully somebody has an idea

  51. #51
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Please upload a file showing the problem and showing what you expect to see. It's not practical to go through all the previous posts.
    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

  52. #52
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Hi Glen, thanks for joining this thread!

    I've added the workbook of Hans and added the expected results.
    The problem is in the database:
    For the additional information (for example: not allowed to be warmed) I have added numbers in an additional column next to every room.
    Sometimes there are more than just one additional information, which leads to more numbers in the column next to every room (for example 5,7)
    Excel counts this as 5.7 (one number) and not as 5 AND 7 (two numbers)
    In this case 5,7 is not existing in the database and i get no additional information.

    My idea was to maybe add letters next to the numbers, so excel can't count them as numbers anymore (to evade the problem with "," beetween numbers) but I was not able to get it working.

    Thank you in advance for your time and help!
    Attached Files Attached Files

  53. #53
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Maybe change the separator in the formula to a semi-colon so that your locale doesn't mistake it for a decimal separator.

    BUT your workbook does NOT show the issue!!! Please set it up so that it does.
    Last edited by AliGW; 10-11-2023 at 03:28 AM. Reason: Typo fixed.

  54. #54
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Forget that - I see the issue now.

  55. #55
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I tried to adjust the formula quickly yesterday, but it didn't work.

    I need to reset my brain and take more time for that. I will try again this afternoon.

    I expect that a solution can be found.
    The only restriction is, if you have decimal point is comma then you should not record 2 comments as 5,7, because that will change to a decimal number. I suggest putting a space behind each comma. So 5, 7. Or you should use a different separator.

  56. #56
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    All commas in Database need replacing witha semi-colon. I am just working on something now. Can be done quickly with Find & Replace.

  57. #57
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I understand - sorry for this misleading.
    I've tried to change the database to for example 5, 7 - but could not find a solution for this as well...

  58. #58
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Try this:

    Not fully road-tested. But the separators mUST be semicolons. Hopefully it works OK...

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

  59. #59
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    It failed at my first check... MULTIPLE curses.

  60. #60
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    @mrdaave

    What's the MAXIMUM number of special requirements in RED that can exist in Database for any one room? Is it just TWO, or could there be more?

  61. #61
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    OK. I think mine is OK for SINGLE substances. Once you select a second one, it falls over. What do you want to happen if 2 or more substances are selected?

  62. #62
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I understand - sorry for this misleading.
    I've tried to change the database to for example 5, 7 - but could not find a solution for this as well...
    Please answer my question in post #60.

    For now, you do NOT need to be doing anything. Just wait until we get back to you.

  63. #63
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Try this in L9 (I've set it up in N9):

    Please Login or Register  to view this content.
    It will handle up to TWO special ROOM conditions. I have replaced ALL commas in Database with semi-colons.

    This would place it all in one cell with Wrap Text set for the cell (try in B9):

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AliGW; 10-11-2023 at 04:30 AM.

  64. #64
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    whereas mine will handle any number of specials.. but at the moment only for a single compound type. I still need to know how results for multiple compounds are to be presented.

  65. #65
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I think you're looking at part #2, Glenn - I am still fixing part #1!!!

  66. #66
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    There is no problem with part #2, the special requirements.
    The second formula in Post #34 does the job.

  67. #67
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I was looking at Part 1... look at the file!

  68. #68
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    OK - however I thought the substances (compounds) were dealt with in part #2, which is why I thought you were dealing with that. Sorry.

    And I've looked and can't see what's wrong with yours for part #1 ...
    Last edited by AliGW; 10-11-2023 at 05:24 AM.

  69. #69
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Please excuse my late answer!

    According your question at #60: it can contain more than 2 special requirements. For now its Maximum is 3.
    I will have a look at the other posts and check the solution provided from Glen

  70. #70
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Go with Glenn's suggestion, then.

  71. #71
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    According #64:

    Chemicals can have a combination of a maximum of 5 GHS-hazard classes.
    For example:

    B4: Organische Peroxide CD -> 5;7
    D4: Akut-toxisch7 -> 7
    F4: Mutagen 7A -> 9
    H4: Ätzend, Haut 7A -> 11
    J4: Karzinogen 7A -> 9

    In this case I would like to add up all the additional requirements (not including doubles)

    For this chemical it would be for room 2 (just as an example): 5;7;9;11

  72. #72
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    What is the expected answer for the scenario as set up in THIS file? The answer generated (rightly or wrongly) is in the purple shaded cells.
    Attached Files Attached Files

  73. #73
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Right would be:
    Additional information 5 and 7 for room 2/3; from 1-9 for room 4; 5 for 6/7; 5-11 for room 9

    Wrong would be:
    Additional information 5 (twice) and 7 (twice) for room 2/3; from 1-9 (5 and 7 twice) for room 4; 5 (twice) for 6/7; 5-11 (5 twice) for room 9

  74. #74
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Show me EXACTLY what you expect in the file.

  75. #75
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Right answer is shown in O1:O7, wrong answer in P1:P7
    I can still change the database if that would make things easier.
    My attempt was to make a combination with numbers and letters (like A1 - A11) instead of just numbers (1-11). Then it would be similar to the second part with the b-terms. But wasn't able to get it to work...
    Attached Files Attached Files

  76. #76
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    OK. I think....

    I guess that I'll have to start over again, as I suspect it isn't a minor tweak.

  77. #77
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Oh no I'm sorry for the inconveniences - if I can provide any further information or help, I will do my best to do so!

  78. #78
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    You >>>MUST<<< use ; as the separator, not a mix of , and ; BOTH were present in the file you uploaded. I think I've removed them all.

    I think this does it...


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


    It's all broken up into baby steps to make it easy (I hope) to unpick if needed!!
    Attached Files Attached Files

  79. #79
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    After some fiddling, here is a solution for the available rooms with the accompanying comments.

    In the database, separate the comment numbers with a ; and try this formula:
    Please Login or Register  to view this content.
    There is virtually no limit to the number of possible comments.
    Attached Files Attached Files

  80. #80
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Thank you Glenn!
    This may take a bit time to check and implement in my workbook - but it seems to solve the problem at first look

  81. #81
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Did you see post #79?

  82. #82
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I compared the results of Glenn's and my formula.

    If there is a room without an associated text, the texts in Glenn's formula will shift and 1 room will not be shown.
    This works well in the other formula.

    See attachment.
    Attached Files Attached Files

  83. #83
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Oh perfect, I was trying hard to understand why something looks strange in my worksheet
    I will try to change to your formula Hans and will give you feedback if it works now!
    Thank you for your time and effort!

  84. #84
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I found one mistake, but my brain cannot find the cause for it today.

    Somehow with a special combination of GHS-hazard-symbols I get the text "No rooms available" between rooms that are possible. But just for my worksheet and not yours (as seen in the screenshot)

    That's why I have to check the formula again and all the combination of data which is different to the samplesheet
    I will have a look again tomorrow morning with fresh eyes.

    Anyway a huge thanks for your help so far - Ali, Hans and Glenn, you're amazing
    Attached Images Attached Images

  85. #85
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Check for , in the database.

  86. #86
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Please check the range of B4:J4 (my sheet) vs B5:J5 Glenn's sheet) also.

    If you cannot find the cause, replace the confidential comments with meaningless comments and upload your sheet.
    Although I have done my best, it cannot be ruled out that something is still wrong in the formula.

  87. #87
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Good morning Glenn and Hans,

    I found the problem, but it's strange:
    My additional texts (1-11) are different from the one in the samplebook, containing confidential data.
    They are longer, but just containing words and numbers (no special separators etc.)
    If I change the first additional text (No. 1) to just a "x" or use the texts from the samplebook everything works fine.
    I was also able to reproduce the problem in the samplebook (this was hard to find) - I think its due to the overload of text in just one cell.
    If I type a lot of nonsense for each number (just many different words) it works for non of the rooms - as you can see in the attachment.

    I have tried to wrap the text, but no success. I can shorten these texts, but if there is a solution to contain all the data in these texts it would be perfect!
    Attached Files Attached Files

  88. #88
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Guten Morgen!

    The #SPILL! error means that there's not enough room for the spill array. Move the formula below down the page a bit to make room:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    M
    2
    Room 1, asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    3
    Room 2
    4
    Room 3, asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    5
    Room 4
    6
    Room 5
    , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    7
    Room 6
    8
    #N/A
    9
    #N/A
    10
    #N/A
    11
    #N/A
    12
    #N/A
    13
    #N/A
    14
    #N/A
    Sheet: Search
    Attached Files Attached Files

  89. #89
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Good morning Ali,

    thanks for reaching out!
    This works for the formula from Glenn - but there is #N/A for every room where the product is not able to be handled and also the shift from one room to another (post #82) so I will get a wrong information for some rooms.
    With the formula from Hans this problem is solved, but I am limited with the characters. In your attachment there are no rooms available for the formula from Hans.

  90. #90
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    This will resolve that:

    Please Login or Register  to view this content.
    I have not yet looked at Hans' formula.

  91. #91
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Are you now all sorted out?

  92. #92
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    If you remove the IFERROR element from qq in Hans' solution, you get this:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    M
    21
    Room 1, asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    22
    Room 2, asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    23
    Room 3, asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    24
    Room 4, asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    25
    Room 5
    , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    26
    Room 6, asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23 , asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    Sheet: Search

    Please Login or Register  to view this content.

  93. #93
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I tried to fix it, but in my case I get #VALUE for rooms which have been "no room available"
    Although if I shorten the additional texts it shows me rooms including the texts. Textwrap doesnt help either

    I have the same height for each row (changed manually). Does this trigger this problem with #VALUE?

  94. #94
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    No, and you need to attach a workbook showing the problem that you are encountering (probably user error).

  95. #95
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Quote Originally Posted by AliGW View Post
    This will resolve that:
    (#90)

    This resolves the problem with #N/V, but I still get the wrong information if some rooms don't have an additional text

    For #94: I'll try to change the conf. data to something different and then send the original workbook

  96. #96
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    That's too vague a response to be helpful, sorry. Be SPECIFIC: "x should be y, not z because ..."

  97. #97
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Workbook without conf. data is in the attachments.

    For the prior solution Ali provided with the formula from Glenn:
    The formula doesn't use the correct numbers in some cases. If there is one room with no additional information it shifts to the next one (I don't really get everything in this formula, but that's what I understood with the help from Hans).
    I used both formulas (Glenn and Hans) and got the same rooms but different additional information.
    I hope this makes the problem a bit more clear.
    Attached Files Attached Files

  98. #98
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    The error occurred when the length of the comments exceeded 255 characters.
    That's weird, because limit is 32767 characters.
    When I removed the IFERROR option from the formula, the formula suddenly went well.
    That is also strange, because then it seems that despite there was no ERROR the formula was still executed the IFERROR part of the formula.

    The IFERROR section was intended for the situation with no available rooms.
    I have now solved this in a different way.

    Hereby the new working formula that also working correct with long comments:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 10-12-2023 at 03:30 AM.

  99. #99
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    But you haven't bothered to annotate it to show what is right and what is wrong! Your error reports are too generic - you need to get down to a granular level: which rooms have the wrong data? What should that data be? Be more SPECIFIC, please, otherwise if will be another 97 posts before we reach a conclusion.

  100. #100
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    If you remove the IFERROR from Hans' formula (déjà vu, anyone?), you get this (tell us what is right/wrong about it and WHY):

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    D
    4
    9-238 Fl., Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam corpora. Kasd pretium cetero qui, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam corpora. Kasd pretium cetero qui, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam
    5
    9-207 Fl., Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam corpora. Kasd pretium cetero qui, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam corpora. Kasd pretium cetero qui, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam
    6
    9-209 Fl., Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam corpora. Kasd pretium cetero qui, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam corpora. Kasd pretium cetero qui, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide.
    7
    9-206, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam corpora. Kasd pretium cetero qui, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam corpora. Kasd pretium cetero qui, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide.
    8
    9-243, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam corpora. Kasd pretium cetero qui, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide., Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam, Lorem ipsum semper habeo duo, ut vis. Aliquyam eu splendide. Ut mei eteu nec antiopam
    Sheet: Mögliche Räume

  101. #101
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    It was clear for me what was wrong and what the expected results should be.

    See solution in post #98.

  102. #102
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    This is getting confusing:

    a) because you, Mrdave, are not being explicit about exactly where the problem is.

    b) the attachment at Post 97 does not seem to contain my formula.. at least I can't see it

    c) there are 3 of us (plus you) playing with 2 sets of formulae.

    This is a recipe for endless confusion. I'll step aside at this point. I'll look back later to see how things have progressed.

  103. #103
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    This is a comment to the solution Hans provided in his last post:

    If I choose the following GHS-hazard-classes:

    Organische Peroxide CD, Brennbare Flüssigkeiten 2, Akut-toxisch7

    following problem occurs: #VALUE

    The right answer would be:
    Room 1, Text for 1,5,7,8
    Room 2, Text for 1,5,7,8
    Room 3, Text for 1,5,7,8
    Room 4, Text for 1,2,4,5,8,9
    Room 5, Text for 1,5,8,9
    Room 6, Text for 1,2,5,8,9


    I will comment #97 as well, but it takes some time to compare this two formulas and define the exact problem

    I think this is due to the max characters in one cell.
    Attached Files Attached Files
    Last edited by mrdaave; 10-12-2023 at 04:16 AM.

  104. #104
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I shall step aside, too, at least until the OP has reviewed Hans' latest (post #98) suggestion.

    I think this is due to the max characters in one cell.
    So what happened when you reduced the characters in that cell??? Did you test your theory?

  105. #105
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Quote Originally Posted by AliGW View Post
    So what happened when you reduced the characters in that cell??? Did you test your theory?
    Yes! If i use for example just one letter/number/etc. everything works.

  106. #106
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    So there's your solution, then. Your text needs to be 255 characters or fewer.

    Anhyway, over to Hans.

  107. #107
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Your text needs to be 255 characters or fewer.
    That is not necessary with the formula of Post 98.

  108. #108
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Additional to #97 to make it clear:

    Solution Glenn:
    Room 1: Text for 1,5,7,8
    Room 2: nothing
    Room 3: Text for 1,5,7,8
    Room 4: nothing
    Room 5: Text for 1,5,7,8,9
    Room 6: nothing

    This solution is wrong, because the additional text should be provided as in Hans' solution:

    Room 1: Text for 1,5,7,8
    Room 2: Text for 1,5,7,8
    Room 3: : Text for 1,5,7,8,9
    Room 4: Text for 1,4,5,7,8
    Room 5: Text for 1,5,8,9
    Room 6: Text for 1,2,5,8,9

    The problem with Hans formula is the limitation to 255 characters or fewer.
    As in post #106 this would be a solution. But we are still limited with the 255 characters or fewer.
    Is there a possibility or workaraound to exceed this limitation?

    If not I will try to shorten them to not exceed the 255 characters.

    Furthermore #98 (latest solution provided from Hans) is commented at #103

  109. #109
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Quote Originally Posted by HansDouwe View Post
    That is not necessary with the formula of Post 98.
    Hans, can you have a look at the attachment at post #103?
    Still got the #VALUE ERROR

  110. #110
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    The problem with Hans formula is the limitation to 255 characters or fewer.
    No the formula does not have a limitation to 255 charachters. See example with room 3 and 4 with over 300 characters.
    Attached Files Attached Files

  111. #111
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    One small observation: Hans' formula refers to "No", but the database table is in German ("Nein").

    Also, it would help if you added a number to your conditions so that we can easier see what is being pulled through:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    X
    Y
    4
    1
    1 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    5
    2
    2 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    6
    3
    3 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    7
    4
    4 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    8
    5
    5 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    9
    6
    6 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    10
    7
    7 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    11
    8
    8 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    12
    9
    9 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    13
    10
    10 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    14
    11
    11 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    15
    12
    12 asdf ölkjas asödlfkj asdföjw aölkdj ölkas ölka ölkjasd ö2 ö9 d90 23
    Sheet: Database

  112. #112
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Please excuse this bummer from me - tried to reproduce the problem from the original worksheet and messed it up a bit...
    Changed the Nein to No and Ja to Yes

    Now there is the #VALUE again as you can see in the reworked attachment from Hans

    Edit: Added numbers to the additional comments to make it clear as Ali suggested.
    Attached Files Attached Files
    Last edited by mrdaave; 10-12-2023 at 04:49 AM.

  113. #113
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Also, the formula of Post 98 works well in the file of Post 103. See attachment.

    Have all the problems now been solved?
    Attached Files Attached Files

  114. #114
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    The formula works well in the file of Post 112 also. See attachement.
    Attached Files Attached Files

  115. #115
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    That is strange - if I open your workbook it works, but as soon as I change one single GHS-hazard-symbol it changes to this:
    Attached Images Attached Images

  116. #116
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Tell us EXACTLY what and how you are changing things so that we can replicate it. Which version of the workbook are you using?

  117. #117
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    if I open your workbook it works, but as soon as I change one single GHS-hazard-symbol it changes to this:
    Oh, the exact opposite happens to me.
    When I open your example I see #VALUE, but when I change the input parameters the correct answer appears.

    When you open an Excel file, the values are loaded, but the formulas are not yet executed.
    This only happens after a change to one of the fields that the formula uses.

    It seems that your EXCEL does not work exactly the same way as my Excel.
    Which version of 365 do you have exactly? And what are you running on?

    What does your Excel return with =TEXTJOIN(",",,SEQUENCE(50)) and =TEXTJOIN(",",,SEQUENCE(1000)) ?

  118. #118
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Quote Originally Posted by AliGW View Post
    Tell us EXACTLY what and how you are changing things so that we can replicate it. Which version of the workbook are you using?
    Sampleworkbook Hans #114
    Change "akut-toxisch7" (or any other GHS-symbol) to anything and back to "akut-toxisch7"
    Then the problem with #VALUE occur

    @Hans - I will check for Excelversion and the TEXTJOIN. brb

  119. #119
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Excelversion Microsoft® Excel® für Microsoft 365 MSO (Version 2208 Build 16.0.15601.20644) 64 Bit

    For TEXTJOIN:

    sequence 50: I get numbers from 1-50 in one cell
    sequence 1000: I get numbers from 1-1000 in one cell (but I can only see until 283, rest is hidden)

    Edit:
    sequence 1000 is the largest possible (for adding zeros at the end (10,100,1000,...)
    sequence 1000-1'000'000 I get #CALK
    sequence above 1'000'000 I get #VALUE
    Last edited by mrdaave; 10-12-2023 at 07:27 AM.

  120. #120
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    No - not seeing the #VALUE! error at all here. I think this has to be locale-related, as you are both using Eurpoean locales.

    2208 is over a year old - why not try running updates from within Excel? Is it Windows or Mac? I'm guessing Windows.

  121. #121
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    That's interesting.

    I can't do any updates due to registration of the admin (PC for work).
    I'm using Windows.

  122. #122
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Ah, OK. Well, it may be significant. Can you ask Admin to update you? Or is that not allowed? Seems odd that they are still on a 2022 release.

  123. #123
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I'll ask them to update.
    Otherwise I will have to wait, until they regularly update office.
    I wasn't aware, that this might have an impact

  124. #124
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    More than ever with 365 - MS are rolling out new functionality with every release.

  125. #125
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    not seeing the #VALUE! error at all here.
    @AlI, I don't think you understand me correctly.

    Also, whenever I execute a formula, I never see #VALUE.
    I only see the #VALUE when I open a file from the OP with #VALUE.

    This is because there is #VALUE in the file and as long as I don't change anything (or enter the formula again) the formula is not executed on my computer and #VALUE remains.
    This will be the case on all computers.

    As soon as I execute the formula on my computer, it always returns good values.

  126. #126
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I also suspect that the cause of the formula not working correctly is the use of an old version of Excel 365.

  127. #127
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    @AlI, I don't think you understand me correctly.

    Also, whenever I execute a formula, I never see #VALUE.
    I only see the #VALUE when I open a file from the OP with #VALUE.
    I understand you perfectly. My point is that I do not see the error at all when I open the file from the OP or from you or when I change any details. But I do agree that this may well have to do with the OPs older version of 365.

  128. #128
    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,053

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I see the #VALUE here, too. Until I force recalculation. Then it's fine.


    If you're not too battle-weary yet, mrdave... can you tell me what is wrong with my formula and I'll have another look.

  129. #129
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    An IT-Ticket should hopefully resolve the problem with the Office-Version. But this can take some days

    @Glenn: As long as all of you sacrifice your valuable time and support me, I can't get battle-weary! For me this support doesn't come naturally and I will provide data and help wherever I can.

    To explain the formula:
    There are two issues (one minor, one major):

    Minor issue/blemish: I get #NV for some rooms that are not able to handle the chemical with the entered GHS-hazard-classes. If possible I would like to show just the rooms which are able to handle the according chemical. Unfortunately I can't tell you why this occurs. In total we have 10 rooms in the database and X(couldn't find the exact number)-13 rows shown (some with #NV) in the formula.

    Major issue: Sometimes there is a different/wrong result compared to Hans'. When you for example choose "Organische Peroxide B" and "Brennbare Flüssigkeiten 1" room 6 should contain the texts for 1,4 and 5. Your formula just contains 4 and 5. The reason for this exceeds my Excel-knowledge as well

    I will pause working for today and would come back here early tomorrow. If there is something unclear with my explanation I'll try to show it better in a samplebook. Thanks again for the help so far!

  130. #130
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    @Glenn, see my sheet in Post#98 for both issues. Your formula and my formula is in that sheet, so you can see the differences.

  131. #131
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Good morning everybody,

    I've got the update for Excel and am using Version 2302 now.
    I tried the samplebook from Hans and Glenn in post #114
    I can now see the whole text in Glenns formula, with Hans' formula I still get #VALUE.
    Is there a way to either fix the problem in Glenns formula (see post #129) or Hans' formula (see post #115)

    Hope you had a great weekend and thank you in advance!

  132. #132
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Which workbook should we be looking at? It would help if you attached the one you are having issues with.

  133. #133
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    There is an issue with all workbooks that contain either Hans' or Glenns formula, but I have looked at the one in #114 (as in attachment now)

    To show the problem with Glenns formula:
    just open workbook and compare room 6 with Glenns and Hans' formula -> there are wrong numbers next to it for Glenns formula (cannot explain why)

    To show the problem with Hans' formula:
    Change Database Y4:Y15 with Z4:Z15 - I get #VALUE for some rooms exceeding 255 characters in some cells (this is no problem with Glenns formula)
    Attached Files Attached Files

  134. #134
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I changed Y4:Y15 to Z4:Z15 - NO error:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    M
    17
    Room 1, 1 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 7 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    18
    Room 2, 1 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 7 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    19
    Room 3, 1 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 7 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    20
    Room 6, 1 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    21
    22
    Sheet: Search

  135. #135
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    One with over 500 charcters still works:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    M
    N
    O
    17
    Room 1, 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 7 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    154
    18
    Room 2, 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 7 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    154
    19
    Room 3, 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 7 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    154
    20
    Room 4, 4 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    154
    21
    Room 5
    , 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    81
    22
    Room 6, 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    80
    23
    Room 7, 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    80
    24
    Room 9, 5 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 6 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 7 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 8 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 9 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 10 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23 , 11 asdf ölkYess asödlfkj asdföjw aölkdj ölkas ölka ölkYessd ö2 ö9 d90 23
    526
    Sheet: Search

  136. #136
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Is this for Hans' formula? Because I still get #VALUE
    May this still be due to another version?
    Attachment is the same workbook from #133
    Attached Images Attached Images

  137. #137
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    I use version 2309 of Excel 365 and there are no problems in my formula with (very) long descriptions here.
    Perhaps Microsoft fixed a bug between versions 2302 and 2309?
    Attached Files Attached Files
    Last edited by HansDouwe; 10-16-2023 at 06:25 AM.

  138. #138
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Hi Hans,

    I opened your workbook and as long as I don't change anything it looks good.
    As soon as I enter something different the #VALUE Error occurs.

    But all of you spent so much time with this problem/thread, I think I will just stick to your formula Hans and hope that this bug will be fixed when we change to Version 2309. In the meantime I will try to shorten the according texts.
    In case the bug isn't fix in the update I would reopen the thread or make a new one (just if we REALLY need the whole texts).

    But thank you for your time and effort - I didn't get disappointed a single time in this forum!

  139. #139
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Show working-instructions depending on GHS-hazard-pictograms

    If you only open the Excel file the formulas are not executed on your computer.

    Thanks for the feedback and rep .

  140. #140
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    It was Hans’ formula.

  141. #141
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Quote Originally Posted by AliGW View Post
    It was Hans’ formula.
    Sorry Ali, I don't get it - what do you mean with "It was Hans' formula?"

  142. #142
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Post #136 (to me):

    Is this for Hans' formula? Because I still get #VALUE
    Post #140 (to you):

    It was Hans’ formula.
    You:

    I would reopen the thread or make a new one
    You would need to reopen this one and continue here - duplicate threads are not allowed.

  143. #143
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Okay - now I get it 😅
    Thank you again for the help!
    And I would reopen the thread if necessary.

  144. #144
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Here - you'd just remove the SOLVED tag and add a new post to the thread, which would bump it to the top of the forum.

  145. #145
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Show working-instructions depending on GHS-hazard-pictograms

    Perfect, thank you very much Ali!

+ 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. Spot the hazard picture - reveal with click
    By fastcar in forum PowerPoint Formatting & General
    Replies: 0
    Last Post: 02-04-2021, 12:47 PM
  2. [SOLVED] Building a hazard table
    By jordana309 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-18-2019, 10:13 AM
  3. [SOLVED] show 0,0.5,1 depending on various condition
    By anilpatni1234 in forum Excel General
    Replies: 19
    Last Post: 10-20-2018, 08:15 AM
  4. [SOLVED] Show data depending on a yes or no.
    By TrickDave in forum Excel General
    Replies: 4
    Last Post: 10-23-2017, 07:40 AM
  5. [SOLVED] Instructions show in Cell until Data is entered
    By swvogt in forum Excel General
    Replies: 5
    Last Post: 09-22-2017, 04:31 PM
  6. Replies: 0
    Last Post: 06-15-2011, 10:36 AM
  7. How can I graph using pictograms in excel?
    By madrabbit7 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-05-2005, 09:25 PM

Tags for this Thread

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