+ Reply to Thread
Results 1 to 28 of 28

Expand the current formula to include additional cells

  1. #1
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Expand the current formula to include additional cells

    Hi,

    I have been handed a spreadsheet that a previous employee had created and have been asked to update it.

    I am still learning Excel and I am struggling with updating it to account for the new way of working which is working off of additional data

    Essentially the user enters a barcode for a container in cell B2 which is populated from another sheet in the background taken from our system, then in B3 down the user enters the barcode for a product, it then matches it to a count to advise of discrepanices or if it is not for that container.

    I have added I2:K2 cells on the 100% check sheet to account for the additional info & copied the formula across, but how do I expand the formulae to include I2, J2 & K2 whenever I input a barcode that is not listed in the "Supplier SKU" field it kicks out the error message in the formula -as the same product can have up to 4 different barcodes I need to be able to account for each one as it is entered, I have attached a sample book to aid in the explanations.

    Hope this is clear & thanks in advance

    Demo
    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 2406
    Posts
    44,662

    Re: Expand the current formula to include additional cells

    OK. So, I threw yuour formula out. It was FAR too slow.

    I changed the header in M1 to match corresponding the value in Background.

    I replaced it with this:

    =IFERROR(INDEX(Background!$A:$H,AGGREGATE(15,6,ROW(Background!$A$2:$A$100)/(Background!$A$2:$A$100=LOOKUP(ROW($B$2:$B$100),ROW($B$2:$B$100)/($B$2:$B$100>0),$B$2:$B$100)),ROWS(H$2:H2)),MATCH(H$1,Background!$A$1:$H$1,0))&"","")

    in H2, copied across and down (note adjusy bits in red to suit your real data. I can help further here, after we agree that it's working.

    I mocked up data for a second container (1234). Add that container number to the next available row in column B... which is B7
    Attached Files Attached Files
    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

  3. #3
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Hi Glenn,

    Thank you for the swift response! - this is much faster to populate

    I am afraid I cannot see the red parts to suit the real data as I am colour blind - but am I correct in assuming it would be the number ranges for the cells ?

    It populates the data based on yours & mine sample data which is great.

    What is next ?

    Thanks again
    Demo

  4. #4
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Strangely when I enter any data into B3 on the check sheet - it blanks everything but the first line on my data but everything from your test data?

  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 2406
    Posts
    44,662

    Re: Expand the current formula to include additional cells

    Don't.

    You enter data on the NEXT AVAILABLE ROW... which is row 7. I can add some conditional formatting to highlight the next available row. Would that help?

  6. #6
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Apologies - I think I have confused the situation, the "Background" sheet is taken from the "Inv_Trans" sheet presented this way due to a macro that outputs a report but provides the data still for the "100% Check Sheet"

    the user when they are checking the container will input the barcode they are presented into the cells from B3 down on the "100% check sheet" which then counts them against what should be present.

  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 2406
    Posts
    44,662

    Re: Expand the current formula to include additional cells

    Well you've confused me. So, Start again...

    What do you want to see? Where do you want to see it? Where should it come from?

  8. #8
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    I am really sorry.

    The information present on "Background" displayed on the "100% Check sheet" the user types in the container number into cell b2 on the "100% check sheet" - this then auto populates all of the fields UPC, SKU quantity etc from "Background".

    Then in cell B3 onwards on the "100% Check Sheet" the user enters a barcode for a product in the container they are checking, this barcode can represent any of the fields from H:K and be a combination of them all, but will also not be in the order that the information is displayed on screen.

    Then as they work through the container entering the barcodes it will count them off against the qty that should be present & show any discrepanices I.E if only 10 of "Supplier SKU" 10 are entered & 10 of "EAN" 100 then it would show 79 qty difference - once they have finished the container it will give an overal view on the "100% check Sheet" for the accuracy of the container + / - variances or if the product does not belong to that container.

    I do really appreciate the help with this.

  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 2406
    Posts
    44,662

    Re: Expand the current formula to include additional cells

    Still confused. So... baby steps time...

    See sheet. You can now enter stuff in B3. What do you want to enter in B3 and what happens next. Amend the sheet to provide an appropriate entry in B3... and manually update sheet to show what you then expect a formula to do...
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Hi Glenn,

    Please see attched - hope this clears things up, I am not the best at explaining things so it seems.
    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 2406
    Posts
    44,662

    Re: Expand the current formula to include additional cells

    Who can tell? maybe I'm not good at understanding!!

    I have added red formatting to flag-up SKUs that are NOT in the contaiuner (B7 & B8). Is Red OK... if not, what can I use?

    1. How many containers per sheet. if more than 1, how many rows per container?

    2. may need to control the zeros in the SKU lists. these may cause problems. Are SKUs always numbers, or can they be alphanumeric?

    3. I do not understand where the numbers in N come from.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    If you would be happy jumping on Skype or teams I would be willing to compensate you accordingly!

    Big blocks of colour are fine - it stands out to me like that just not in the colour you see, can these be counted in the discrepancie section ?

    1: There will be one container per sheet but this can have upto 500 units in
    2: If this is the case we could switch these to N/A ? Sku's are always numbers for all 4 variants
    3: These are the discrepancies on the container, the top one with 6 units has 1 unit of Supplier SKU ending in 599 & 1 unit of UPC ending in 875 entered on the input section resulting in a discrepancy of -4 units as only 2 units are physically present in the container (I had a fat fingers moment and typed -3)

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

    Re: Expand the current formula to include additional cells

    1. Clear. no problem.

    2. Fixed. They now return blanks.

    3. You said:

    the top one with 6 units has 1 unit of Supplier SKU ending in 599 & 1 unit of UPC ending in 875 entered on the input section resulting in a discrepancy of -4

    What input section? Where is it?

    4. Could do Zoom, if needed!!
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Amazing!, the input section is on the "100% Check sheet) cells B3 down are where the user will input the barcode.

    Iam up for Zoom if this will help of course & I genuinely appreciate this.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,795

    Re: Expand the current formula to include additional cells

    For Demogorgan's benefit: needless to say, if you DO do Zoom, please don't forget to report back here. The help here is free, of course, and should be here to benefit all.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  16. #16
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Of course - it was more to aid in the explanation of what I am trying to acheive as I am not the best communicator through typing..
    Last edited by AliGW; 02-14-2021 at 10:09 AM. Reason: PLEASE don't quote unnecessarily!

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,795

    Re: Expand the current formula to include additional cells

    Definitely - some of us prefer visuals!

  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 2406
    Posts
    44,662

    Re: Expand the current formula to include additional cells

    Final version??

    1. I moved the cell containing the container number. Since there's only one, it should be in a more prominent position.

    2. I accidentally deleted all your shading... I have put some back again. So, don't be surprised if it looks a bit different!!!

    3. All of the Conditional formatting and formulae go down 1000 rows, more than enough.

    4. Non-existing SKUs are highlighted twice, once in cols B& C and in a consolidated list that appears from Q3 downwards. The "Not Found" in C can be changed to something shorter... even to an "X" in a hidden column, but something is needed to trigger the formula in Q.

    5. Finally, I think I understand this.

    6. Try to break it. There may be some bugs in it...
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Mate you are a star - this is brilliant, is it appropriate if I send you some beer money ?

    The only bit I can see that looks out is that random numbers dont always trigger the "Not found" message as per attached, is this an easy fix? basic shading I can fix easy enough

    I will test tomorrow when I am back in but you have really helped me out!

    Can you recommend anywhere to help with the learning of the these advanced functions ?
    Attached Images Attached Images

  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 2406
    Posts
    44,662

    Re: Expand the current formula to include additional cells

    Well... I said the formulae were all good to go... They weren't. that formula stopped at row 15. Now fixed.

    Hopefully you'll find it all a bit faster than the original!!
    Attached Files Attached Files

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

    Re: Expand the current formula to include additional cells

    There's a commercial services subforum here where users can pay for services from the most active members. I do not participate there. Ever.

    I muck around here to keep the little grey cells active... for fun basically. Especially during Lockdown 3...

    I don't need the money and I always have concerns that if I accept any payments of any kind I am also accepting an element of legal liability in the event that something goes spectacularly belly-up as a consequence of one of my formulae not going down a column far enough... or whatever.

    if anything else goes wrong, just shout. I'll be here off-and-on tomorrow. A delivery of fresh malted barley arrived here yesterday... so it's beer-making time tomorrow morning.

    for now,



    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

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

  22. #22
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Quote Originally Posted by Glenn Kennedy View Post
    Well... I said the formulae were all good to go... They weren't. that formula stopped at row 15. Now fixed.

    Hopefully you'll find it all a bit faster than the original!!
    It is much faster thank you! - I still have the same issue on the final one when I input the SKU's as the screen shot it doesnt mark them as not found?
    Last edited by AliGW; 02-14-2021 at 11:18 AM.

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

    Re: Expand the current formula to include additional cells

    Show me... It looks OK to me. Modify this and repost.
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Here you go - strange one!
    Attached Files Attached Files

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

    Re: Expand the current formula to include additional cells

    Soaking wet after getting caught in a torrential downpour whilst out walking....

    Now you see why I am not interested in any recompense...I can go "Meh!!" and walk away.

    The problem was caused by the fact that all of those short strings were components of one or more of the full SKU codes. Now fixed by adding (in the formula) a space before and after each term.

    Incidentally, i didn't mention it... I changed the formulas returning the SKUs again to return the #N/A error instead of blanks. The blanks interfered elsewhere. The reason you can't see them is that I then used conditional formatting to make the font shade the same as the background shading.
    Attached Files Attached Files

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

    Re: Expand the current formula to include additional cells

    One last thing... well, two actually. I forgot to fix a tiny glitch on the red formatting. Now applied only to column C. I also noticed that your file was suffering a bit from Excel bloat, possibly as a result of too much conditional formatting. It is now a lot smaller (about 20% of original size).
    Attached Files Attached Files

  27. #27
    Registered User
    Join Date
    12-01-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    16

    Re: Expand the current formula to include additional cells

    Thank you so much Glenn, you have been such a help!

    I do not blame you about the recompense part, very much a position I would like to be in!!

    Enjoy the beer making & I will let you know if I have any more issues.

    Thank you again
    Demo

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

    Re: Expand the current formula to include additional cells

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

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

+ 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. Replies: 1
    Last Post: 11-22-2016, 01:54 AM
  2. [SOLVED] Change formulas to include additional cells as I fill them in?
    By dtexter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2015, 05:29 PM
  3. Modifying an index/match forumla to include additional cells
    By trishcollins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2014, 09:49 AM
  4. [SOLVED] Include an additional product in a sumproduct formula
    By cpope in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2013, 11:18 AM
  5. How can I expand the IF formula to take into account additional parameters?
    By simonjacobson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2013, 05:04 AM
  6. Replies: 5
    Last Post: 09-08-2009, 12:30 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