+ Reply to Thread
Results 1 to 11 of 11

If then for list of 300 things

  1. #1
    Registered User
    Join Date
    01-21-2013
    Location
    Johnstown, PA
    MS-Off Ver
    Excel 2010 Starter
    Posts
    7

    Question If then for list of 300 things

    New to the forum, first post, so forgive me if I don't have the etiquette quite right :-)

    I am trying to do inventory control. I have the following entered into a spreadsheet:

    A is the date
    B is the room in which the product is to be used
    C is the individual who requisitioned the item
    D is the name of the item
    E is how many of the item
    F is a list of all products
    G is a list of the cost of each unit of each product.

    A B C D E F G
    Date Room Who What How many Item Unit cost
    12/3/12 ** bill Traps 4 A/W Tips 0.19
    11/28/12 Dark Room bill Pan dup film 1 Alginate 11.09
    11/28/12 Dark Room bill pan film 1 Amalgam Kit (Disposal ?) 146.00
    11/13/12 Denture Karen Kromopan 1 Anterior triple trays 1.47
    12/11/12 Denture Mike Kromopan 2 Articulating paper - xthin blue strips 1.56
    9/19/12 Develop mike Duplicating film 1 box Base plate wax 0.50
    9/21/12 Develop Mike Snippets 1 Bibs 0.06
    10/18/12 JR/MS tim Monophase 1 Bibs - Rose 0.06
    10/23/12 JR/MS bill Large gloves 1 Birex 4.13
    10/30/12 JR/MS Dave JR gloves 1 Bite rims 0.72
    11/5/12 JR/MS bill Optibond Solo 5 Bite sticks for panorex 0.50
    11/5/12 JR/MS bill Etch 1 Bitewing tabs 0.02

    Here is what I would like to do:
    I want the item in D to have the value of that item from G automatically pop up beside it. I can insert another column between D and E for this. Then I want to multiply the value by the number of units, thus giving me an overall cost for that particular line.

    Someone tried to help me on another forum, and I tried his formula, but can't get it to work. It was this: =IFERROR(VLOOKUP(A2, Sheet2!$A$2:$B$235, 6, FALSE), ""), but the columns were different, so the A2 and B235 will need to be changed, I'm guessing to F2 and G235, but I am the one asking for your help, so you tell me.

    Once I am able to do this, I plan to break the data down into subsets by date, by room, by employee, etc., to generate many different reports, so typing all of this in by hand would be extensively time consuming and prone to data entry error, so if you can help me, you will have my utmost gratitude.

    Thank you very much,

    Mike Rice,
    Johnstown, PA

  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
    52,945

    Re: If then for list of 300 things

    Hi from Duncansville, Mike, welcome to the forum

    Its always hard to see what data looks like when it gets copied here

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

    Aslo, if you have posted a similar question on another site, please include the link here
    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

  3. #3
    Registered User
    Join Date
    01-21-2013
    Location
    Johnstown, PA
    MS-Off Ver
    Excel 2010 Starter
    Posts
    7

    Re: If then for list of 300 things

    Wow, that was fast !

    Thanks for the instructions. I will try, but it seems to be over my head !

    Mike

  4. #4
    Registered User
    Join Date
    01-21-2013
    Location
    Johnstown, PA
    MS-Off Ver
    Excel 2010 Starter
    Posts
    7

    Re: If then for list of 300 things

    Here is the link to the other thread that I posted on another site:

    http://social.msdn.microsoft.com/For...c-b14b97f02a32

  5. #5
    Registered User
    Join Date
    01-21-2013
    Location
    Johnstown, PA
    MS-Off Ver
    Excel 2010 Starter
    Posts
    7

    Re: If then for list of 300 things

    Here is an example:
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-21-2013
    Location
    Johnstown, PA
    MS-Off Ver
    Excel 2010 Starter
    Posts
    7

    Re: If then for list of 300 things

    I would like to have column G automatically calculated from the values in columns I and N, based upon what I type into columns D and E.

    Thank you very much,

    Mike

    P.S.: Awesome instructions on how to upload the file ! :-)

  7. #7
    Registered User
    Join Date
    01-18-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: If then for list of 300 things

    =LOOKUP(D5,I$2:I$14,N$2:N$14) try this, i did it in D5 for bibs because it was the first one I saw that matched. I assume you have a list of all the products you use similar to Columns i-p. if you do not you need to create one. if you do then the formula I provided should work for this issue.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If then for list of 300 things

    Or with VLookup fot the item bibs.

    Please Login or Register  to view this content.
    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.

  9. #9
    Registered User
    Join Date
    01-18-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: If then for list of 300 things

    forgot to mention you need to paste either formula in column F

  10. #10
    Registered User
    Join Date
    01-21-2013
    Location
    Johnstown, PA
    MS-Off Ver
    Excel 2010 Starter
    Posts
    7

    Re: If then for list of 300 things

    Thanks, everyone. Yes, I have a complete list of products as in columns i through q.
    I think we have a winner ! Thank you VERY MUCH !!!!

    Mike

  11. #11
    Registered User
    Join Date
    01-21-2013
    Location
    Johnstown, PA
    MS-Off Ver
    Excel 2010 Starter
    Posts
    7

    Re: If then for list of 300 things

    How do I mark this thread solved or closed ?

    Thanks,

    Mike

+ 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