+ Reply to Thread
Results 1 to 9 of 9

Refrence data in a row

  1. #1
    Registered User
    Join Date
    12-23-2015
    Location
    tulsa, oklahoma
    MS-Off Ver
    2013
    Posts
    5

    Refrence data in a row

    Hello everyone, thanks in advance for any help. I am comfortable with excel but can't find anyway to accomplish what I need done. I have a report that I have to do at work each day that takes hours. It only takes so long because I have to repeat my own work. I need a formula that will search for the last instance of a string on the report and then gather the information I input. For example. In cell A1 there would be a order number. In cell A3 I would input some information. Sometime later the same order number would show up in cell A1, I want the data in cell A3 to auto-populate. There can be multiple instances of the order number. It would be best if it can reference the last instance for the information to pull from. I hope that makes sense. Thank you

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,874

    Re: Refrence data in a row

    Quote Originally Posted by Derek210 View Post
    ... I hope that makes sense ...
    It doesn't make much sense to me. Perhaps you can attach a sample workbook (the FAQ describes how to), and in that you can explain exactly what you want to achieve, perhaps with a Before and After sheet which show what data you are acting upon (maybe compile the results manually).

    Pete

  3. #3
    Registered User
    Join Date
    12-23-2015
    Location
    tulsa, oklahoma
    MS-Off Ver
    2013
    Posts
    5

    Re: Refrence data in a row

    I had to change all the confidential information but here is an example. The full sheet is at about 60,000 lines and growing by 500+ per day. In my example I want the information that has already been put in for customer A, in cells I through M, to be copied down. I want to use the order number for the reference since the customers will sometimes have multiple orders.
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,874

    Re: Refrence data in a row

    You didn't put an After sheet in, so I'm still not clear what you want. You have data in columns I to M for customer A with order number 1234 on row 2, and also on row 6, but not on row 10. So, what do you want to happen with this data?

    Pete

  5. #5
    Registered User
    Join Date
    12-23-2015
    Location
    tulsa, oklahoma
    MS-Off Ver
    2013
    Posts
    5

    Re: Refrence data in a row

    Sorry I didn't post an after. It would be the exact same sheet with the data from row 6 columns I through M copied down to row 10 columns I through M. I want a formula that looks for the latest instance of the order number and then copies the data from I through M to the newer instance of the order number.
    Attached Files Attached Files

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,874

    Re: Refrence data in a row

    I put the formula in cells on row 8 in the attached file, and then copied them down to the bottom of your table - note that they do not automatically copy down, as is usual with a table, because you have some manual data entries above. All the formulae are array formulae, which means that you have to commit them using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual |Enter|. When you look at the formulae in the formula bar you will see curly braces { } around the formula, but you must not type these yourself. If you need to edit the formula, then you must use CSE again to commit them. Here are the formulae in the cells stated:

    I8: =IF(IFERROR(MAX(IF(($B$1:$B7=$B8)*($C$1:$C7=$C8),ROW($1:7),-1)),-1)>0,A8,"")

    J8: =IF(IFERROR(MAX(IF(($B$1:$B7=$B8)*($C$1:$C7=$C8),ROW($1:7),-1)),-1)>0,INDEX(J$1:J7,MAX(IF(($B$1:$B7=$B8)*($C$1:$C7=$C8),ROW($1:7),-1))),"")

    K8: =IF(IFERROR(MAX(IF(($B$1:$B7=$B8)*($C$1:$C7=$C8),ROW($1:7),-1)),-1)>0,INDEX(K$1:K7,MAX(IF(($B$1:$B7=$B8)*($C$1:$C7=$C8),ROW($1:7),-1))),"")

    L8: =IF(IFERROR(MAX(IF(($B$1:$B7=$B8)*($C$1:$C7=$C8),ROW($1:7),-1)),-1)>0,INDEX(L$1:L7,MAX(IF(($B$1:$B7=$B8)*($C$1:$C7=$C8),ROW($1:7),-1))),"")

    M8: =IF(IFERROR(MAX(IF(($B$1:$B7=$B8)*($C$1:$C7=$C8),ROW($1:7),-1)),-1)>0,INDEX(M$1:M7,MAX(IF(($B$1:$B7=$B8)*($C$1:$C7=$C8),ROW($1:7),-1))),"")

    Note that the formula in J8 can be copied across into K8:M8, but you will need to apply a date format to M8, and then the row of formulae can be copied down.

    Notice also that the formulae pick up the repeat of Customer B in row 9, although the empty cells from the earlier record show up as zeros.

    Hope this helps.

    Pete
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-23-2015
    Location
    tulsa, oklahoma
    MS-Off Ver
    2013
    Posts
    5

    Re: Refrence data in a row

    Thank you so much Pete! That is exactly what I was looking for! This helps a TON

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,874

    Re: Refrence data in a row

    Well, Derek, I'm glad to help, though I'm not really sure how you would use this, but thanks for the rep anyway.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

  9. #9
    Registered User
    Join Date
    12-23-2015
    Location
    tulsa, oklahoma
    MS-Off Ver
    2013
    Posts
    5

    Re: Refrence data in a row

    It's tough to explain how this helps. Basically new orders get added to the report that need to be checked that day. Most of the time they have been checked recently, because they have to be checked every week until completed. So the formulae that you made saves me 5 minutes per order in gathering the same information again. Now a 10 minute task becomes a 5 minute task, and that saves me about an hour a day.

+ 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. help with date refrence
    By nartnart in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 05-15-2015, 02:25 AM
  2. [SOLVED] How do you cross refrence data in one field with data in anothe?
    By CenterShock in forum Excel General
    Replies: 3
    Last Post: 01-16-2014, 05:30 PM
  3. refrence value
    By mak_pj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2013, 04:22 PM
  4. [SOLVED] cell refrence
    By jeeper74 in forum Excel General
    Replies: 4
    Last Post: 02-16-2013, 11:55 AM
  5. Data table refrence help needed
    By Misguided in forum Excel General
    Replies: 3
    Last Post: 10-14-2011, 02:12 AM
  6. VBA refrence to another cell
    By jackandjill in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-12-2010, 04:23 AM
  7. [SOLVED] Using one number to refrence another
    By pugsly8422 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2005, 04: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