+ Reply to Thread
Results 1 to 6 of 6

preventing duplicate values

  1. #1
    Registered User
    Join Date
    01-23-2020
    Location
    LOndon
    MS-Off Ver
    Google Sheets
    Posts
    3

    Post preventing duplicate values

    Hi,

    I'm struggling to make this formula only display the first instance of a result. Any help would be amazing.

    =IFERROR(INDEX(NewName,SMALL(IF(NewBranch=$A1,IF(NewWeek=$B1,ROW(NewName)-ROW(INDEX(NewName,1))+1)),1)),0)

    thanks

    Martin

  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,819

    Re: preventing duplicate values

    Did you commit it as an array formula? In Excel you will need to use the key combination of Ctrl-Shift-Enter (CSE) to commit the formula instead of the usual Enter, and if you do this correctly you will see curly braces { } around the formula when viewed in the formula bar (though you must not type these yourself).

    I see in your profile, however, that you are using Google Sheets, and if that is the case then CSE doesn't work. I think you need to use the ArrayFormula function around the formula that you quoted.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-23-2020
    Location
    LOndon
    MS-Off Ver
    Google Sheets
    Posts
    3

    Re: preventing duplicate values

    Hi,

    I've tried it as an array formula and it still doesn't work

    It worked perfectly when I was dealing with a week number instead of individual dates but now I've expanded the source data to have individual entries for each date it doesn't work

    If you could help with this I would be very grateful

    thanks

    Martin

  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,819

    Re: preventing duplicate values

    It would help if you attached a sample Excel workbook, and the procedure for doing this is described in the yellow banner at the top of the screen.

    If you missed it, though, you can do this: click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Don't try to use the Paperclip icon (Attachments button), as it doesn't work on this forum.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    01-23-2020
    Location
    LOndon
    MS-Off Ver
    Google Sheets
    Posts
    3

    Re: preventing duplicate values

    Hi Pete,

    Would it be easier to share the link with the spreadsheet with you in a DM?

  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,819

    Re: preventing duplicate values

    No.

    If you use a free forum then you have to be prepared to share with everyone.

    Pete

+ 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 preventing duplicate entries
    By kranic3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-29-2017, 12:44 PM
  2. [SOLVED] Help Preventing Duplicate Entries
    By LoneWolf3574 in forum Excel General
    Replies: 5
    Last Post: 12-13-2012, 02:39 AM
  3. Preventing duplicate row entries
    By kennethchu604 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2009, 07:10 PM
  4. Preventing Duplicate entries
    By Dave32 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2008, 09:51 AM
  5. Preventing from entering duplicate values in the same column across sheets
    By coach_tyro in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-12-2008, 06:43 PM
  6. Preventing user entering duplicate values in a cell range
    By Thomas Peters in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2005, 04:10 PM
  7. Preventing Duplicate Cells
    By BenBlair in forum Excel General
    Replies: 3
    Last Post: 05-19-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