+ Reply to Thread
Results 1 to 4 of 4

Grabbing one value for a cell

  1. #1
    Registered User
    Join Date
    05-26-2015
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    29

    Grabbing one value for a cell

    Hello,

    I think I am close with figuring this out, but I'm stumped. I have a large file about 10,000 lines and I am trying to grab particular information between two sheets.

    I have a serial record where I am trying to grab the last date serviced. There is already a column that tells me the last date service on one sheet, but I need to show that on another sheet. The problem I run into is that there may be multiple lines with the same serial number, so it shows the same last serviced date.

    I tried a Sumproduct formula, but I get 1/1/1900 as a result. I tried a Sumproduct formula mixed with a MAX formula and gives me the wrong info.Dateexample.xlsm

    An example of the file is attached.

    Thank you in advance.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Grabbing one value for a cell

    Hi.

    =LOOKUP(1,0/(Sheet1!A$2:A$7=A3),Sheet1!B$2:B$7)

    Note that using entire column references within this formula - or indeed any array-processing formula such as SUMPRODUCT, AGGREGATE, and any construction requiring CSE - is not at all a good idea: if you actually only have data up to, say, row 1000, then by referencing entire columns you are forcing Excel to calculate 1047576 more cells than are necessary.

    Try choosing a suitable upper bound for the end range reference.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    05-26-2015
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    29

    Re: Grabbing one value for a cell

    Thank you!

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Grabbing one value for a cell

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Grabbing Text From a Cell
    By dandoescode in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-30-2015, 11:47 AM
  2. Grabbing and using a cell's text in VBA
    By elained in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 08:42 PM
  3. [SOLVED] Difference between grabbing a cell in a range vs. a value
    By BeefNoodleSoup in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-15-2012, 10:52 AM
  4. Excel 2007 : Grabbing Cell in Same Column, Different Row
    By The_Intern in forum Excel General
    Replies: 6
    Last Post: 12-22-2010, 05:04 PM
  5. Replies: 29
    Last Post: 06-08-2009, 10:37 AM
  6. Grabbing text from just part of a cell
    By Mary T in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2006, 03:01 PM
  7. Grabbing the last Non-empty cell in a range
    By Arlen in forum Excel General
    Replies: 2
    Last Post: 01-22-2005, 02:06 PM

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