+ Reply to Thread
Results 1 to 10 of 10

conditional lookup and selection

  1. #1
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    conditional lookup and selection

    I am using excell for our estimating sheets. I am trying to automate some of the processes to ensure there are less mistakes.

    I would like to automate the process so that if a number is put into the quantity column then certain cells from that row are copied to a different sheet.

    I just dont know how to do it? Do I use Macros or Formulas?
    Last edited by philiasfogg; 02-04-2009 at 07:22 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: conditional lookup and selection

    You probably can use formulas...

    In that other sheet that you want populated, you could use simple IF() formula.

    E.g. =IF(Sheet1!A1<>"",Sheet1!B1,"")

    this will check if Sheet1 has anything in A1... if it does, then B1 from Sheet1 will be "copied" over to the cell you have the formula in, otherwise it will stay blank.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: conditional lookup and selection

    hi thanks for this

    However i really wanted to consolidate the list down.
    Currently i do it manually by having autofilter on and then selecting all non-blanks in the quantity column.
    Then i copy the rows into another worksheet.

    I just am looking to see if i can do this automatically

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: conditional lookup and selection

    Try recording a macro doing these steps and see if that works....

    Otherwise, someone here can help create a macro for you...

  5. #5
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251

    Re: conditional lookup and selection

    Please, post an example file.

  6. #6
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: conditional lookup and selection

    Hi

    Attached is an example quote template.
    The price list is on worksheet 3 (price list)
    when i put in a qty against a part i want the cells from columns A, B, C, D, E, and F to be copied into the table on worksheet 1 (workings) into the cells on columns C, D, E, F, G, and H (same order)

    i then want the list as per worksheet 1 (workings) to be copied to worksheet 2 (BOM)

    I hope the attached helps make this clear
    Attached Files Attached Files

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: conditional lookup and selection

    See attached.

    Enter a part ref in column C and the remaining columns are completed and transferred to the BOM sheet.

    Formula used in D20 of "Workings" sheet:

    =IF($C20="","",VLOOKUP($C20,'price list'!$A:$F,COLUMNS($A$1:B$1),0))

    copied down and across to column H.

    Note: formulas in columns I:L have slight adjustments to avoid Error results.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: conditional lookup and selection

    Thanks for this
    It is one way of achieving my aims.

    However as most of the sales guys cannot remember the part codes they use the price list currently.
    So i thought if they are using the price list anyway, if they just put a qty in then that line would auto copy into the working sheet.

    Is this possible??

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: conditional lookup and selection

    Ok,

    See attached.

    The only thing that changes is the addition of a formula C17 to perform a count of records with Quantities in them. (You can format this cell to have font colour match background so the number is not visible, if you want)>

    Then change formula in C20 to the following:

    Please Login or Register  to view this content.

    Which must be confirmed with CTRL+SHIFT+ENTER
    not just ENTER and then copied right down.

    The remaining formulas in all sheets remain the same as previously.

    Note: I filled in a few for testing purposes...
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: conditional lookup and selection

    That is great and has solved this part of the job

    Thanks

+ 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