+ Reply to Thread
Results 1 to 6 of 6

Modify Order Number Column based on Zip Code Column

  1. #1
    Registered User
    Join Date
    05-24-2017
    Location
    Long Island, NY
    MS-Off Ver
    2010
    Posts
    8

    Post Modify Order Number Column based on Zip Code Column

    Is there a way to add an incrementing value to the end of the order number column based on the zip code? (see the embedded image below, rows 1 through 12). In other words, for each zip code, we want to modify the order number by adding a "-1", "-2" etc.

    I would like it to look like the sample I provided in the embedded image below (rows 15 through 26). Is there an easier way other than manually doing this? It would be helpful when I have hundreds of line-items to modify.

    Thanks in advance!

    Attachment 668135
    Attached Files Attached Files
    Last edited by gshowman1; 03-20-2020 at 01:23 PM.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: Modify Order Number Column based on Zip Code Column

    Rather than the zip code it looks as if you already have part of the answer with the Store number ???

  3. #3
    Registered User
    Join Date
    05-24-2017
    Location
    Long Island, NY
    MS-Off Ver
    2010
    Posts
    8

    Re: Modify Order Number Column based on Zip Code Column

    The actual store numbers have a different format than the way we have order numbers. For this batch, each different zip code must have the same order number but with a suffix added of a "-1", "-2", "-3", etc (as I have shown in my manually changed order numbers listed on rows 15 - 26).

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: Modify Order Number Column based on Zip Code Column

    You could do it with a simple looping macro.
    Attached example, you need second sheet as reference to store zip/suffix
    Attached Files Attached Files

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Modify Order Number Column based on Zip Code Column

    As per torachan, =A2&"-"&RIGHT(B2,2)
    But you mentioning store number in different format.
    Can you attach actual sample workbook. For clearity.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Registered User
    Join Date
    05-24-2017
    Location
    Long Island, NY
    MS-Off Ver
    2010
    Posts
    8

    Re: Modify Order Number Column based on Zip Code Column

    After discussing with the person I am helping, this formula is the ideal solution for us.


    Thank you and torachan for your responses. Much appreciated!

    (In my original post, I changed the image to an excel file.)

+ 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: 09-12-2019, 04:30 PM
  2. [SOLVED] userform data to next empy row in ws - textbox number order same as column order
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-31-2017, 01:38 PM
  3. Add numbers to column based on order number change
    By fpmsi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2013, 11:48 AM
  4. [SOLVED] Quantity in column D based on order amount of times the order no appears
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-19-2013, 06:48 PM
  5. [SOLVED] Modify this code to select different column
    By Rerock in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-17-2012, 11:52 AM
  6. Need help to modify code to include more than 1 Column
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2007, 02:08 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