+ Reply to Thread
Results 1 to 2 of 2

Labels from Excel, conditional on data

Hybrid View

  1. #1
    Registered User
    Join Date
    11-21-2011
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    23

    Labels from Excel, conditional on data

    Hello all,
    I've got a vexing problem with Office 2007. I have a spreadsheet that tracks customer data, including the customers' names and mailing addresses with each row (record). I would like to do what I'm going to call a conditional mail merge. By this I mean if a customer places an order for a given month, then his/her name will be populated into an Avery 5160 label (based on the weight of the mailing--I have a column entiled weight (col. H). If H3 is empty, then customer 3 gets no mailing. If H4 contains any numerical value, customer 4 gets a mailing label generated.

    I can find any number of tutorial videos on Youtube on how to do a simple mail merge with Excel+Word, but I can find nothing to do what I've just described.

    Any thoughts?

    Thanks in advance!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Labels from Excel, conditional on data

    not sure if I understand you, but vlookup() will go and look for a specific value, in a defined range, and return data from whichever column you choose...
    =VLOOKUP(what-you-want-to-find,range-to-search-in,column-that-contains-the-match,FALSE) FALSE is for finding an exact match

    if that is not what you want, i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, what your expected outcome is, and how you arrived at that

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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