+ Reply to Thread
Results 1 to 11 of 11

Need help w/return value of duplicate cell

  1. #1
    Registered User
    Join Date
    07-25-2017
    Location
    Fort Wayne, IN
    MS-Off Ver
    MS Standard 2010
    Posts
    7

    Need help w/return value of duplicate cell

    Have a tricky one... can this be done?? Refers to cells E4 and D4 of current worksheet "One_Rig_Response"

    -In current worksheet "One_Rig_Response" I need to write a formula into E4.
    -E4 currently refers to cell/worksheet "=ZoneList!V3"
    -D4 currently refers to cell/worksheet "=ZoneList!B3"
    -E4 cannot, however, duplicate cell D4
    -If E4 is the same as D4, I need cell E4 to refer to the cell next to "=ZoneList!V3", which is "=ZoneList!W3".
    -And if THAT cell is still returns the same value, then I need to go to the NEXT cell beside that, "=ZoneList!X3"
    -And finally, if that cell still returns the same value, then onto the next cell, "=ZoneList!Y3"

    Is this possible????

  2. #2
    Registered User
    Join Date
    07-25-2017
    Location
    Fort Wayne, IN
    MS-Off Ver
    MS Standard 2010
    Posts
    7

    Re: Need help w/return value of duplicate cell

    Also, I will be highlighting and dragging/copying this formula down a column, so I cannot make it specific to those exact cells.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Need help w/return value of duplicate cell

    Welcome to the forum!

    It sounds feasible, but seeing the data would help.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    07-25-2017
    Location
    Fort Wayne, IN
    MS-Off Ver
    MS Standard 2010
    Posts
    7

    Re: Need help w/return value of duplicate cell

    Thank you so much! Here is the excel worksheet with just three worksheets in question. Every cell refers back to ZoneList worksheet. I am trying to create a formula for all columns labeled "HE".

    IN HIGH RESCUE WORKSHEET:
    -Cells in column D refers to the corresponding cells in Column B of ZoneList.
    -Cells in Column E need to refer to columns V-Y in ZoneList, with the first attempt being column V, and so on.

    For example, in "HIGH RESCUE" worksheet, working with Row 4, specifically cells D4 ("=ZoneList!B3") and E4 ("=ZoneList!V3").
    -They are currently showing both "E06" as their returned values. However, they cannot be the same in this worksheet.
    -So cell E4 needs to go to the next-up cell ("=ZoneList!W3").
    -And so on... if those are also the same... then next being "=ZoneList!X3," next up being "=ZoneList!Y3."
    EXAMPLE: In "HIGH RESCUE" E4 should show TK1 ("=ZoneList!W3"), since ZoneList!V3 (E06) is the same as D4 (E06). It should move on in order: V-W-X-Y.



    I would be happy with just that, but if anyone can also help with the other worksheet, "9 Engines Deep", Columns W-Z also need to be updated the same way, however:
    -anything in "2HE" (column X), cannot duplicate cells from Columns B-C and L-M.
    -anything in "3HE" (column Y), cannot duplicate cells from Columns B-D and L-N.
    -anything in "4HE" (column Z), cannot duplicate cells from Columns B-E and L-O.
    If there are no unique numbers to return for any particular cell (or all apparatus have already been used), it should be NULL.

    Thank you so much! Hope I didn't make that more difficult than it is

    (hope the attached spreadsheet goes through, if not I will try to post again)

  5. #5
    Registered User
    Join Date
    07-25-2017
    Location
    Fort Wayne, IN
    MS-Off Ver
    MS Standard 2010
    Posts
    7

    Re: Need help w/return value of duplicate cell

    I reduced the spreadsheet down to just a few rows since it exceeded size
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,542

    Re: Need help w/return value of duplicate cell

    I am a bit confused. Since the values in columns V and W of the 'ZoneList' sheet are not the same, I don't see how both the values could be the same as the value in column D of the 'High Rescue' sheet. I have never the less written a formula that responds to your request:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Paste the formula into cell E4 on the 'High Rescue' sheet and drag down.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    07-25-2017
    Location
    Fort Wayne, IN
    MS-Off Ver
    MS Standard 2010
    Posts
    7

    Re: Need help w/return value of duplicate cell

    Amazing! Thank you soooo much ))))

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,542

    Re: Need help w/return value of duplicate cell

    As to the second part, columns X:Z on the '9 Engines Deep' sheet, try pasting the following into X6, then copy over and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  9. #9
    Registered User
    Join Date
    07-25-2017
    Location
    Fort Wayne, IN
    MS-Off Ver
    MS Standard 2010
    Posts
    7

    Re: Need help w/return value of duplicate cell

    Thanks so much for all your help! I ended up adding the AND function to the formula with each column to add on the extra values. That was before I saw this.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,542

    Re: Need help w/return value of duplicate cell

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day. An extra thank you and wish for blessings as the workbook shows evidence that you are a first responder!

  11. #11
    Registered User
    Join Date
    07-25-2017
    Location
    Fort Wayne, IN
    MS-Off Ver
    MS Standard 2010
    Posts
    7

    Re: Need help w/return value of duplicate cell

    Yes, this is to reduce response times for our department, so I am very grateful for your help. I will check this "solved." Have a blessed 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. Duplicate rows if cell contains carriage return (or possibly newline)
    By matybg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2016, 04:08 AM
  2. Need help checking a range for ducplicate value and return duplicate value cell#
    By pasqualebaldi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2016, 01:08 PM
  3. If duplicate return value below
    By Rompetelo in forum Excel General
    Replies: 1
    Last Post: 02-03-2016, 05:52 AM
  4. [SOLVED] Return the value of a duplicate
    By MDB1 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-27-2016, 06:39 PM
  5. Using a LOOKUP with duplicate values - return in an array in one cell
    By mattdh12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-20-2014, 01:07 PM
  6. [SOLVED] Delete rows based on duplicate cell, but leaving first and last duplicate.
    By LadyNicole in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2013, 05:07 AM
  7. Return duplicate row values in new table based on single cell value
    By VDubz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-08-2011, 10:04 AM

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