+ Reply to Thread
Results 1 to 4 of 4

Looking for matches, if true, place number from other cell here

  1. #1
    Registered User
    Join Date
    12-03-2016
    Location
    Sacramento, California
    MS-Off Ver
    2010
    Posts
    2

    Looking for matches, if true, place number from other cell here

    Hello,

    I am trying to create a formula in Column D that would look to see if the the value in column A (ID #) is the same as the row above it. If it is, then it would capture the value from column C (Original) in the lower row, and print that value in Column D of the row above it.




    ID Type Original Copy
    1 A 10
    1 B 5
    2 A 15
    3 A 10
    4 A 10
    4 B 2
    5 A 10
    6 A 10
    6 B 5
    7 A 10
    7 B 2



    Ideally, after a formula, it would look something like this

    ID # Type Original Copy of Original
    1 A 10 5
    1 B 5
    2 A 15
    3 A 10
    4 A 10 2
    4 B 2
    5 A 10
    6 A 10 5
    6 B 5
    7 A 10 2
    7 B 2



    Edit- that below reply works, but I forgot to mention one thing.

    It works great when the data is unfiltered. How do I apply this to filtered data? For example, if that info I posted is after I filtered out data between the lines, it needs to look at the rows in the filtered data- the rows I'm comparing in filtered data are directly above one another visually, but in reality, it might be row 201 and row 288. Is there a way to drag the formula down so it looks at the row above it after the data has been filtered? Hopefully this makes sense!

    I have thousands of rows so a formula would make this much easier. Unfortunately, I have tried a few different things and used google but have not found something that works that would satisfy what I am trying to do.


    Thank you in advance for your help. Please let me know if I need to explain something in greater detail.
    Last edited by dailybaseball; 12-04-2016 at 12:03 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: Looking for matches, if true, place number from other cell here

    I would think this would do it... =IF(a2=a1,c2,"") and put that in D1 and copy down.

    Or =if(a1=a2,c2,"") in d1 would also work.
    Last edited by Sam Capricci; 12-03-2016 at 10:40 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    12-03-2016
    Location
    Sacramento, California
    MS-Off Ver
    2010
    Posts
    2

    Re: Looking for matches, if true, place number from other cell here

    Hello,
    That helps for sure but I forgot to mention one thing.

    It works great when the data is unfiltered. How do I apply this to filtered data? For example, if that info I posted is after I filtered out data between the lines, it needs to look at the rows in the filtered data- the rows I'm comparing in filtered data are directly above one another visually, but in reality, it might be row 201 and row 288. Is there a way to drag the formula down so it looks at the row above it after the data has been filtered? Hopefully this makes sense!

    Thank you!

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Looking for matches, if true, place number from other cell here

    Hi dailybaseball

    Welcome to the Forum!!!

    I know of know way to drag a Formula down to only Visible Cells. What you describe can be easily done with Code.
    If interested, what are you filtering on? ID?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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] IF statement true, when a cell value matches one of the values in a multi-valued cell?
    By deldalton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2013, 01:30 PM
  2. Replies: 7
    Last Post: 03-25-2013, 06:07 PM
  3. If any of 5 cells contain a number, place certain test in the cell.
    By vnetmanager in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2013, 09:09 PM
  4. [SOLVED] Highlight or place "X" when cell matches any other cell within the entire workbook.
    By Mr.Atlantis in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-28-2013, 12:34 PM
  5. [SOLVED] Lookup that returns true value if cell matches text in a column
    By shauncat in forum Excel General
    Replies: 5
    Last Post: 07-16-2012, 10:30 PM
  6. [SOLVED] Where do I place #CONST DEBUG_MODE = True in my workbook?
    By stubbsj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-09-2012, 12:28 PM
  7. Excel 2007 : Place Border Around Cell IF Value TRUE
    By robeast in forum Excel General
    Replies: 2
    Last Post: 05-22-2012, 07:40 PM
  8. [SOLVED] place a number in a cell
    By ADiscrete1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2006, 08:30 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