+ Reply to Thread
Results 1 to 14 of 14

Transfering data from Sheet to Sheet

  1. #1
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    Transfering data from Sheet to Sheet

    I have attached an excel file attached. I have 175 different part numbers, but I made an example of 10 numbers to show my problem. On sheet “Supplist” I have a list of part numbers that I need data on from sheet “Subtotal”. Basically I need the numbers from the “subtotal” list to marry up with the part numbers on the “supplist” Right now I am just manually entering the data, I know excel is smarter than me. Any help would be appreciated.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    in cell m2 and dragged down
    =VLOOKUP(B2,Subtotal!$A:$D,4,FALSE)
    mind you i had to change the font colour to black in col M to see anything

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    asf

    That didn't work.

    thanks for the try

  4. #4
    Registered User
    Join Date
    12-14-2007
    Location
    Ontario
    Posts
    19
    I know that this is an Excel forum and this doesn't exactly answer your question, but as a user of both Excel and Access I have found that each piece of software has it's strengths and weaknesses. Many people find comfort in using excel but should actually be using Access. Your scenario is a great example of one in which Access would be a much better application to consider using. This task could be completed in a matter of a few mouse clicks in access. In Access once the link is stablished between your 2 sheets (called tables in access) Data added to or changed in the subtotals would automatically show up in the Supplist Table. It would take a little reading and practice to understand how access can work but I would recomend it in your case. If you are interested in a little tutorial information or have specific questions feel free to P.M me, i would be glad to help.
    Unfortunatly I don't know a way to solve this problem in Excel without using VBA programming and some complicated loops. (I'll be keeping an eye on this to see if one of the experts has an answer, because I would be interested to know if there is a simple way to do this as well.)

  5. #5
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    access

    I have access, just prefer excel better because I only know how to use access to pull data.

  6. #6
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    font

    Sorry about the font color in column M
    not sure what happened

    any more ideas?

  7. #7
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    excel file with correct font

    Attached is the file with font problem fixed
    Thanks
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    project finished

    I entered in the data manually, but I have to do another project with similar requirements, so any help would be appreciated

    Thanks

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by Coors View Post
    That didn't work.

    thanks for the try
    How didn't it work? It worked for me.
    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.

  10. #10
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    here is what i get

    attached is the results,

    Data appears, but the results are not right
    Attached Files Attached Files

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try this in M2, copied down:

    =LOOKUP(2,1/(Subtotal!$A$2:$A$244=SUPPLIST!B2),Subtotal!$D$2:$D$244)

    adjust ranges to suit if you list passes row 244

    You may need to format your results cell to eliminate the decimals from view.

  12. #12
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    Solved

    Thank you for the help.

    Now I just need to study the formula and figure out how you came up with that.

    Just one question, did you create excel, you seem to know this better than anyone.

  13. #13
    Registered User
    Join Date
    08-30-2008
    Location
    London
    Posts
    35
    Some can't use access because of corporate IT policies to govern data storage. They are good to show a developer the interconnected properties of a business pre database development. Excel can also provide an easier means for on the fly "what if" calculations than a database for the novice user. The divide between IT and operations is large in the service sector.

  14. #14
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by Coors View Post
    Thank you for the help.

    Now I just need to study the formula and figure out how you came up with that.

    Just one question, did you create excel, you seem to know this better than anyone.
    This Lookup() formula will find the last entry that matches the condition in the denominator of the Lookup Array argument (ie. the 2nd argument of the function).

    If you select the cell with the formula and go to Tools|Formula Auditing|Evaluate Formula and click Evaluate to step through the way the formula is evaluated, you will see what is going on.

    The denominator, when evaluated, creates an array of TRUEs and FALSEs depending on if the condition is met or not in each element of the array. The 1/denominator will then create an array of 1's or #DIV/0 errros because 1/TRUE is the same as 1/1 which =1 and 1/FALSE is the same as 1/0 which results in an error....

    Now the next thing for the Lookup() function to do is look for a 2 in that resultant array... It can't find one and the function looks for the last entry in the array that is smaller than or equal to the 2.. ie. the last 1 in the array is targeted and that postion is returned... then the corresponding item from the lookup vector (the 3rd argument) is extracted.

    Hope that helps...and thanks for the compliment.

+ 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