+ Reply to Thread
Results 1 to 6 of 6

Choose formula that returns #value

Hybrid View

  1. #1
    Registered User
    Join Date
    08-11-2021
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    75

    Choose formula that returns #value

    hello all,

    I have a formula someone on here provided me that works amazingly. It chooses out of 4 options based on the number of occurrences in a different cell and automatically adapts its count range as new data is entered (defined table). Now the only thing I need it to do is choose option 4 which is send off when 4 or more occurrences happen. As of now once it reaches its 5th occurence its just #value. What I need is basically; 1st = first time, 2nd = second time, 3rd = notify, 4th = send off, >5 = send off.

    here is the formula;
    =IF(OR(B7={"","end shift"}),"",CHOOSE(COUNTIF(B$2:INDEX(B:B,ROW()),INDEX(B:B,ROW())),"First Time","Second Time","Notify!","Send Off"))
    thanks in advance!
    Last edited by DropAGearN'Disappear; 08-06-2022 at 10:40 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,429

    Re: Choose formula that returns #value

    Try:
    Formula: copy to clipboard
    =IF(OR(B7={"","end shift"}),"",IFERROR(CHOOSE(COUNTIF(B$2:INDEX(B:B,ROW()),INDEX(B:B,ROW())),"First Time","Second Time","Notify!","Send Off"), "Send Off"))
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,787

    Re: Choose formula that returns #value

    Another option
    Formula: copy to clipboard
    =IF(OR(B7={"","end shift"}),"",SWITCH(COUNTIF(B$2:INDEX(B:B,ROW()),INDEX(B:B,ROW())),1,"First Time",2,"Second Time",3,"Notify!","Send Off"))

  4. #4
    Registered User
    Join Date
    08-11-2021
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    75

    Re: Choose formula that returns #value

    thanks! it worked

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,787

    Re: Choose formula that returns #value

    Glad to help & thanks for the feedback.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,429

    Re: Choose formula that returns #value

    You're welcome. Thanks for the rep.

+ 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. CHOOSE Formula
    By Aphyx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-30-2018, 04:05 PM
  2. Two validations: first choose the sheet (1-5), then choose the option
    By bee88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2014, 08:12 AM
  3. [SOLVED] Formula help to choose lowest cost from multiple vendors and then choose vendor
    By roland_arv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-27-2013, 07:48 PM
  4. choose one specific return from multiple returns of Vlookup
    By loaiky in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-28-2013, 12:06 PM
  5. CHOOSE Function returns "#VALUE!" when using an array
    By wolf83 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2013, 09:37 PM
  6. [SOLVED] formula to choose top 5
    By AGA in forum Excel General
    Replies: 2
    Last Post: 04-26-2012, 11:03 AM
  7. Using the CHOOSE formula
    By tropezfn in forum Excel General
    Replies: 1
    Last Post: 09-28-2006, 11:21 AM

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