+ Reply to Thread
Results 1 to 7 of 7

Filling a cell with YES based on data from another sheet

  1. #1
    Registered User
    Join Date
    12-26-2006
    Posts
    54

    Filling a cell with YES based on data from another sheet

    I have an excel sheet with two tables for customers to know which products the customer is using based on a Contract table.

    The enclose sheet has two tables:
    1. Customer
    2. Contracts

    All what I need is to fill the columns of "Product A", "Product B" and "Product C" of every customer looking at the table "Contracts" where the data is available based on the "Customer ID"

    How can I do it?

    excelsheet.xlsx

  2. #2
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Filling a cell with YES based on data from another sheet

    Ηι

    Try this in C2 and copy down and across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Filling a cell with YES based on data from another sheet

    In C2, and drag across
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ________________________________________________________
    If your problem is solved, update the thread as SOLVED: Go to the top of the first post-Select Thread Tools-Select Mark thread as Solved OR - Go to the first post - Click edit- Click Advance- Just below the word "Title:" you will see a dropdown with the word No prefix.- Change to Solve- Click Save.

    Show your gratitude to the person who helped you solving your problem by clicking on star button at the bottom of such post.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,629

    Re: Filling a cell with YES based on data from another sheet

    Another approach.....

    In C2
    Please Login or Register  to view this content.
    and then copy across and down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    12-26-2006
    Posts
    54

    Re: Filling a cell with YES based on data from another sheet

    Many thanks. All 3 solutions are working perfectly.

    How can I add a totals for every products column? Is it =count(...)

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Filling a cell with YES based on data from another sheet

    with an pivot table

    or

    c33
    Please Login or Register  to view this content.
    and drag to the right.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Filling a cell with YES based on data from another sheet

    You are welcome and thanks for the feedback.

    For your last query, if you just want to count the "yes" in eatch column WITHOUT to use the filter, then use a simple COUNTIF.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Copying cells from one sheet to another then filling down based on previous column
    By mahowarth in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-07-2013, 08:18 AM
  2. [SOLVED] Pre-filling data based on a cell
    By beleza.jake in forum Excel General
    Replies: 15
    Last Post: 09-05-2012, 05:20 PM
  3. Filling a range of cells based on a cell in another work sheet
    By devious in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2012, 04:33 PM
  4. Filling a cell based on another cell partial data
    By smartcard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-26-2010, 04:18 AM
  5. Filling out calendar based on another sheet
    By dlroo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2008, 03:33 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