+ Reply to Thread
Results 1 to 2 of 2

Populating a worksheet from multiple IF statements

  1. #1
    Registered User
    Join Date
    09-03-2006
    Posts
    14

    Exclamation Populating a worksheet from multiple IF statements

    Hi Guys,

    Okay i have an URGENT issue i have a worksheet where it has a drop down box for months of year, and another cell below for product.
    Then below that i have three cells, exist,new,other.

    So WORKSHEET#1
    A B
    Month <List>
    Product <List>

    NEW 1000 (these will change and want to keep the other worksheet
    EXIST 2000 consistent with the details)
    OTHER 3000

    ***************
    So wat i want to do is i have anotehr sheet where only one cell references each. I want to populate the cell and save it (i am assuming Paste Special somewhere), VBA is fine.

    Example, IF (B1 = "July") AND (B2 = "product1") then populate the corresponding cells for NEW, EXIST, OTHER on a sheet

    *************************

    WORKSHEET #2
    A B
    Month July

    NEW
    Product1 1000
    Product2
    EXIST
    Product1 2000
    Product2
    ...

    Any other questions let me know. Thanks for your help

    email address to use kaitlyn_wright@technologyonecorp.com

  2. #2
    Registered User
    Join Date
    01-21-2004
    Location
    Liverpool
    MS-Off Ver
    2003
    Posts
    88
    Little confusing your description but

    if what you want is when the user selcts the month form drop down and the product from drop down it populates sheet 2

    Then you could use a combo of if statements and vlookups

    for instance in your sheet two

    if(B1=product1, sheet3!A1,if(b1=product2, sheet3!A2..... and so on

    In sheet 3 you would store your v\hlookups and table arrays for this
    you would have a table array for each product, and a v\hlookup for each product.

    There prob is a way to do it with vba but that is beyond my knowledge at present.
    regards
    Paul
    http://www.frontlineuk.com
    FrontLineUK

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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