+ Reply to Thread
Results 1 to 3 of 3

Conditional Values

  1. #1
    Registered User
    Join Date
    01-26-2011
    Location
    New Mexico, USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question Conditional Values

    Hello. I am trying to merge two spreadsheets with item names and quantities. The problem is that the destination sheet has 400 items and the Donor worksheet has only 100 of those items. In DestWS I need to to insert a value from ColumnB in DonorWS into a cell if the item names match. In beginner Excel I would say “IF(Sheet2!A2=Sheet1!A2,Sheet2!B2,0). This doesn’t work, it doesn’t check to make sure that the value in A2 is the same in both sheets. Thanks for any help!

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

    Re: Conditional Values

    Possibly?

    =INDEX(Sheet2!B:B,MATCH(Sheet1!A2,Sheet2!A:A,0))

    or

    =VLOOKUP(Shee1!A2,Sheet2!A:B,2,FALSE)
    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
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Conditional Values

    Hi liveisgood and welcome to the forum,

    See the attached sample workbook with what I think you want.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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