+ Reply to Thread
Results 1 to 24 of 24

Formulas & sorting

  1. #1
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Exclamation Formulas & sorting

    Dear All,

    Please refer to the attached excel file which is having nearly 10 worksheets in it.

    Actually this is the loading list for shipping out containers.

    I have updated formulas in sheets name BRG, BRG6, BRG7, Transshipment and 5600(DIS) to get the data from sheet proposed loading list automatically once data is there in proposed loading list sheet.

    the problem here is the data from the proposed loading list sheet to other sheets are not sorted, I mean the if the data is for BRG sheet is mentioned in row 117 in proposed loading list sheet it gets updated in same row in BRG sheet.

    Is there any formula if the data gets updated in other sheets from Proposed loading list sheet gets sorted out automatically?

    Attached excel file for your reference.
    Attached Files Attached Files

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

    Re: Formulas & sorting

    Where can I find references to BRG, BRG6, BRG7 and the other one on proposed loading list sheet? if they're not their, how can I (or Excel) tell what information has to go onto which sheet?
    Glenn




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

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

  3. #3
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    The data in proposed loading list is taken from SAP, I have just copied it from SAP and pasted it in proposed loading list.

    And I have updated the formulas in other sheets BRG, BRG6, BRG7, Transshipment and 5600(DIS) to get the data from proposed loading list (kindly check the formulas please if its ok).

    My concern here is the data are being updated in the above mentioned sheets from proposed loading list sheet, but the thing is they are not sorted.

    if the data for BRG is mentioned in row 100 in proposed loading list sheet it comes on the same row in BRG sheet where I need (if possible) to have the data in the first row (after the heading) of the BRG sheet.

    Hope I was able to clarify what I need. sorry and thanks.
    Last edited by Vikramchetan; 03-22-2017 at 07:33 AM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,543

    Re: Formulas & sorting

    If I understand correctly sheet BRG column C, should now be displaying the container numbers in the manner you desire.
    The array entered formula* used to populate column C is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    *Array entered formulas are activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    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,000

    Re: Formulas & sorting

    I have done this only for BRG. Please check it and tell me if it's what you wnated. Most of the formulae are array formulae.

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    Thank you so much. Yes this is what I wanted, but I tried to use the same formula for the next column in BRG sheet but I'm not getting any output. Yes I used CTRL+SHIFT+ENTER.

    I tried to get the batch numbers for those containers in BRG sheet from Proposed loading list sheet but the formula didn't work for me. I just changed the column in the formula for batch number which is column E in Proposed loading list sheet.

    Kindly advise me please.
    Last edited by Vikramchetan; 03-22-2017 at 09:26 AM.

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

    Re: Formulas & sorting

    Who are you talking to?

  8. #8
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    Quote Originally Posted by Glenn Kennedy View Post
    Who are you talking to?
    To you only.

  9. #9
    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,000

    Re: Formulas & sorting

    You have me confused. I completed ALL of the columns for the BRG sheet. Whay were you copying columns on that sheet??

    However, one thing is certain. I cannot tell what you have done incorrectly if you do not post the sheet with the problem!!
    Last edited by Glenn Kennedy; 03-22-2017 at 01:05 PM.

  10. #10
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    Glenn, sorry for the late response. In BRG Sheet you have applied formula only for one column (Column name - Container number), I tried to execute the same formula for the other columns (Batch number, Net weight, Delivery) but it doesn't work for me. I did the same as you told me, like CTRL+SHIFT+ENTER after the formula is entered. Kindly refer to the attached and advise what is the mistake I have done. Thank you so much.
    Attached Files Attached Files

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

    Re: Formulas & sorting

    I am sorry, my friend.... but you are WRONG. That is NOT my sheet. Go back to Post 5. Open it. You will see that ALL the columns on BRG have been completed. What you have attached is based on JeteMc's sheet from Post 4. He only did the one column.

    I do not use this type of construction in my formulae: ...A$7:A$339)-6)),ROW(A1))).

    So, please check the attachment at sheet 5.

  12. #12
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    Quote Originally Posted by Glenn Kennedy View Post
    I am sorry, my friend.... but you are WRONG. That is NOT my sheet. Go back to Post 5. Open it. You will see that ALL the columns on BRG have been completed. What you have attached is based on JeteMc's sheet from Post 4. He only did the one column.

    I do not use this type of construction in my formulae: ...A$7:A$339)-6)),ROW(A1))).

    So, please check the attachment at sheet 5.
    Sorry Glenn, I just overlooked. Gimme some time I will try this on other sheets and let you know the outcome. Thank you so much and sorry for referring to the wrong XL.

  13. #13
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    Hi Glenn, I tried the same formula in BRG6 sheet but it didn't work for me. Can you please check the attached excel and advise. Thanks again for your assistance.
    Attached Files Attached Files

  14. #14
    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,000

    Re: Formulas & sorting

    You selected the whole column and copied it across. You can't do that. It doesn't work. Instead, select the whole ROW and copy/paste it. Modify as needed. set the array and copy down. It works perfectly.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    Hi Glenn, I didn't copy & paste the formula. First I selected column 7 to 1006 and then I typed the formula in C7 and then I pressed CTRL+SHIFT+ENTER. Should I select ROW instead of column like from ROW 7 to ROW 1006???

  16. #16
    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,000

    Re: Formulas & sorting

    OK. Doing it that way was wrong,too. It can only be done by populating one cell in each array, setting the array, and then copying down.

  17. #17
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    I tried the formula in another excel it worked for BRG6. but when I tried it for another sheet transshipment it worked too but the data is not sorted properly, It starts from row 27 can you check the attached file and advise what went wrong with the formula??? I hope this will be my last request to you.! thanks a lot..... Also let me know how to add reputation?
    Attached Files Attached Files

  18. #18
    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,000

    Re: Formulas & sorting

    I am away for the night. Look back in the UK morning.

    To add reputation, click on the little star labelled Add Reputation at the bottom-left of this Post.

  19. #19
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    Ok I will wait for your reply. Also please advise how to avoid the blank cells. coz after I input the formula in Transshipment sheet I get blank rows in between which is same as proposed loading list sheet but I just want to know if there is any chance to avoid this blank cells????

  20. #20
    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,000

    Re: Formulas & sorting

    Once again, you are WRONG, I'm afraid. You did NOT use my formulae. You simply used your own ones again. There are NONE of my formulae on the transshipment sheet; so I am not surprised that it did not work!!

  21. #21
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    Oops sorry again.. wrong attachment.. anyway I have updated the formulas in all sheets. Thanks for your help! Reps added! If any issues again I will come back to you!

  22. #22
    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,000

    Re: Formulas & sorting

    You're welcome and thanks for the Rep.

  23. #23
    Registered User
    Join Date
    03-18-2017
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    17

    Re: Formulas & sorting

    Quote Originally Posted by Glenn Kennedy View Post
    You're welcome and thanks for the Rep.
    Hi Glenn, Could you please check the attached excel file the formula in transshipment is not working properly. It starts from row 22 instead of the Row 7.

    Also can you have a look at the summary sheet, I have updated formulas to count the number of containers based on few conditions where one condition is if net weight is greater than or equal to 12.375. Sometimes I have containers loaded from two different batches with same net weight 12.375 which is being counted twice instead of once. The formula works when I copy and paste the "grade" and "batch number" from proposed loading list sheet.

    Kindly help me in amending the formula in summary sheet too (I have updated two examples in summary sheet for your reference). Also please be informed that sometimes containers are loaded with less quantity like 3KT only without mixing with any other batches so I need the formula to count it too..
    Attached Files Attached Files

  24. #24
    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,000

    Re: Formulas & sorting

    The problem was caused by your use of IF('Proposed Loading List'!$J$7:$J$1454<>10 All the blank rows in column J were included in that. So, adding another IF term: IF('Proposed Loading List'!$J$7:$J$1454<>10,IF('Proposed Loading List'!$J$7:$J$1454<>"" fixed it.

    You had also changed my formula in BRG column D, which was working perfectly well, to another one which was not working at all (I have no idea why you felt it necessary to change it!!). I have restored it to my working formula.
    Attached Files Attached Files

+ 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. [SOLVED] Sorting using Formulas
    By Keibri in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2016, 07:38 AM
  2. Sorting with formulas
    By Teblol in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2014, 03:11 PM
  3. [SOLVED] Sorting Formulas
    By wcdunn in forum Excel General
    Replies: 3
    Last Post: 03-29-2012, 02:28 PM
  4. need help with sorting using formulas
    By kwesi2505 in forum Excel General
    Replies: 6
    Last Post: 07-27-2011, 06:55 AM
  5. Sorting formulas
    By chris1432 in forum Excel General
    Replies: 1
    Last Post: 12-07-2006, 05:13 PM
  6. sorting formulas
    By m4tt in forum Excel General
    Replies: 2
    Last Post: 08-25-2005, 08:05 PM
  7. [SOLVED] Sorting with formulas
    By Crowraine in forum Excel General
    Replies: 5
    Last Post: 02-08-2005, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1