+ Reply to Thread
Results 1 to 30 of 30

for excel to automatically add in a line if customer places bigger order

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    for excel to automatically add in a line if customer places bigger order

    i dont know if this can be achieved via excel, is ther a way to automatically add a line if a customer wants to place a bigger order? for example in the attachment in row 12, to automatically enter new line and subtotlas to automatically scroll down and add it in the line? please help or point me in the direction on what i should be searching for. thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    Just right click on the line and then click "Insert". Copy down any formulas.

    The totals will automatically recalculate.

  3. #3
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    hi, I am just wondering if it can be done automatically, or if there was a way to do it, since I don't know what it can be done or can't be done since I am a novice to excel program.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    Probably done using VBA but how would Excel (VBA) know you wanted an extra line ??

  5. #5
    Registered User
    Join Date
    04-16-2016
    Location
    ENGLAND
    MS-Off Ver
    2010
    Posts
    5

    Re: for excel to automatically add in a line if customer places bigger order

    thanks every body

  6. #6
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    ok, i think if i click on cell and it will add a line and scroll everything down a line.
    But how can i make it to output a message "error" when they pick the wrong model, for example if they pick on A3, then the price is just empty on D3, if i can output a message and put some kind of warning on there.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    The whole point of Data Validation (dropdown)is that you always select something: hence how would you know the selection is wrong?

    D3 would only be empty if there was no entry in the price table for the cabinet/model/colour selected: will this happen?

    If so, you could put this in Column G

    =IF([@[PRICE/EACH]]="","Input error","")

  8. #8
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    i tried that but it gives me some kind of error, what about adding on B3, for example, if it dont have that model, then to output 'error", i am think because a customer might change his ming and the user can go back and pick a different model but he does not pick on B2, so just to point out to the user that there is an error instead of leaving it blank.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    I don't understand what you mean: how can you not have a model if it is based on a dropdown list?. The user could delete the entry in any cells A or B so there would be no price.

    =IF(OR([@CABINETS]="",[@MODEL]=""),"Input Error","")

    You cannot enter data AND have a formula in the same cell.
    Last edited by JohnTopley; 04-16-2016 at 01:54 PM.

  10. #10
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    ok, I think I can understand. I was just trying to prevent from user to make errors, as if they changed the A1 column, but they forgot to change B2, so to point out to the user that he has picked 'wrong' , since customer change their mind in the middle of an order.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    If you want the error checking to cover what are valid combinations of cabinet/model you will have to define a set of "rules" defining all valid options. This starts to get very complex and may requires VBA code to perform this. Even then it is possible to put in a valid but wrong i.e. not what customer ordered, set of data.

  12. #12
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    ok, i understand. How about setting the quantity to 0 as default, that way if a customer order just 2 items, i dont have to go into each row and set it.

  13. #13
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    here is the attachemtn so you kow what i mean. I have to go into each row to set to 0 if customer just order 1 item.
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    Why? Why are you selecting goods if the customer only wants the first item?
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    ahh isee, that works,
    Now, i added dynamic range to the 'QUANTITY' list, as the attahcments shows, how can i add dynamic range so i can add different models in base, wall, pantry, crowns, etc...?
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    I changed the layout so I can add dynamic range to new products, but I lost the price formula, don't seem to work or I cant get it to work. Please take a look at the attachments. I read in google about 'vlookup' but read that index is more efficient as you have set it. Please help, I wouldn't have gotten anywhere without help.
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    Sorry but we have reverted back to the wrong format: you were able to add dynamically to the tables in my last post - simply add to the end..

    You will need to set up a price list per type if you persist in the new format.

    See attached with NAMED range called BASE and one called COLOUR (you only need the latter for the PRICE formula)

    See formula for price

    =VLOOKUP(B3,INDIRECT(A3),MATCH($F3,Colour,0)+1,0)

    I'll leave you to work out the remainders.

    Set up named ranges called BASE SINK, WALL etc copying how BASE is defined.

    Plus you need ranges for MODELS for each TYPE.

    Examples for BASE and BASE SINK in the attached.

    Price formula needed changing ....

    =VLOOKUP(B3,INDIRECT(SUBSTITUTE(A3," ","_")),MATCH($F3,Colour,0)+1,0)

    as you cannot have spaces in Named Range names.
    Attached Files Attached Files
    Last edited by JohnTopley; 04-17-2016 at 12:30 PM.

  18. #18
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    ok, this is close to what I need, is there a way to narrow down the choices in the drop down list? in sheet3, in column A, then narrow down to category in "column B", and then narrow down in 'Column C" to model number from the drop down list?
    here is my attachment.
    Attached Files Attached Files

  19. #19
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    I am sorry but I am not spending any more of my free time solving your continually changing requirements. My last post does exactly what you asked for in your latest post - Named ranges per TYPE and MODELS for each type.

    So if TYPE is BASE SINK you only get BASE SINK models.

    Attached is the completed version: the last!
    Attached Files Attached Files
    Last edited by JohnTopley; 04-17-2016 at 01:38 PM.

  20. #20
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    HI, i understand, i thank you for everything and i am grateful you have spoonfed me this far. I appreciate your help and very grateful again.
    Its not that i have continuos changing, its just that i don't have a overall knowledge on what can be done and what can't be done, and how to do thing since i don't know excel much. Its just when i use it i run into errors and how i can simplify the spreadsheet to allow me to do the things that i need.
    Thank you again.

  21. #21
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    hey Johntopley! that was it! I got confused with all the file names and changes, but you got it working as I wanted! I have a whole bunch of files and didn't know which is what, so I redownloaded your file, and it works... IF I may ask 1 last thing, can you set the color to be instead of picking 1 in each row, to pick one on F2 and set the whole thing? PLEASE PLEASE PLEASE...
    I know I am over reaching myself .. sorry and apologies, I just don thave the sufficient knowledge to do this... please add the color on how you had it in the beginning.. to have one set.. instead of picking each row on color in F2

  22. #22
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    Put a DV list in F2 and change the $F references in the Price formula to $F$2

  23. #23
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    ok, I added a data validation, but in the price formula, in what part of the formula do I put in the reference?

  24. #24
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    Look at the PRICE formula .... there is only ONE reference to $Fn where is n= 3, 4 etc. ...

  25. #25
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    GREAT! IT WORKS!! THANK YOU Johntopley!!!!
    a question, how come when I copied it donw the formula by dragging? it will enter F3, F4, F5, and so on, I changed it to F2 (for reference) in the price, is there a trick to copy that or its just entered manualy? is that how you did it the first time? so I can learn.
    BUT MUCH MUCH THANK YOU!!.. you are the greatest, when I had no where to run, you, I will marked this solved ..thank you again..
    I know that you have given up your valuable time to help .. I am grateful..

  26. #26
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    ....$F$2 to FIX the reference

  27. #27
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    hey JohnTopley is there anyway I can thank you monetary or a way I can compensate you either with something that I can do or pay or donate for helping me out? I had no clue on how to start or get the layout and formulas, and I would gladly compensate for your time and efforts for me to have the spreadsheet. Please let me know if I can compensate you to show my gratefulness to you. I have 20 points on this forum for the commercial services if you like, I know its not much but I already have it.
    Last edited by chubbychub; 04-18-2016 at 06:02 AM.

  28. #28
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    Thank you for the offer but the services offered here are free. Hang on to your Commercial Services points as you might find a use for them in the future.

    Hopefully you can now move forward but if you need further help from the forum post a new thread.

  29. #29
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    844

    Re: for excel to automatically add in a line if customer places bigger order

    ok, thank you.
    I was trying to get rid of the blank spaces from the drop down list, when there are for example 3 items in Lazy susan, the drop down list in sheet 1 shows some blank spaces. I am just trying to clean it up and make it a bit nice.

  30. #30
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: for excel to automatically add in a line if customer places bigger order

    Just change the rage in Named ranges to your likely maximum.

+ 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: 9
    Last Post: 04-15-2014, 05:18 AM
  2. Replies: 0
    Last Post: 04-12-2013, 02:28 AM
  3. [SOLVED] Copying Customer Details Onto Each Sale Line Until Next Customer is Reached
    By Babybio77 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-22-2013, 11:33 AM
  4. Replies: 2
    Last Post: 02-04-2013, 10:58 AM
  5. Replies: 10
    Last Post: 09-27-2012, 03:59 PM
  6. Order Sheet - automatically add a new line
    By Balsams in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-16-2009, 11:54 PM
  7. Replies: 2
    Last Post: 03-14-2006, 02:04 AM

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