+ Reply to Thread
Results 1 to 6 of 6

Need to ignore text entered in range for formula

  1. #1
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Need to ignore text entered in range for formula

    Hello Function Guru's:
    Have this formula. At some time in it's usage, a user might enter some text in a cell in the source data range, resulting a #VALUE error, and hosing the entire summary table. Is there a way to modify the formula to ignore any text present in a cell contained inthe source data table?

    {=IF(AB7="","",MIN(IF(($G$2:$Z$2=AD$5)*($A$5:$A$999=$AB7)*($G$5:$Z$999)<>0,($G$2:$Z$2=AD$5)*($A$5:$A$999=$AB7)*($G$5:$Z$999))))}

    (cannot upload a working copy.)

    Thanks for any input.

    Pete

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Need to ignore text entered in range for formula

    One solution would be to stop users from being able to enter bad data in the first place, using Data Validation on any input areas and set them to allow numbers only. This will give you the result you need, and have the added benefit of ensuring consistent data. Ignoring particular parts of a cell can be very difficult; your formula would end up being about three times longer I think.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need to ignore text entered in range for formula

    Perhaps

    =IF(AB7="","",MIN(IF(ISNUMBER($G$5:$Z$999),IF(($G$2:$Z$2=AD$5)*($A$5:$A$999=$AB7)*($G$5:$Z$999)<>0,($G$2:$Z$2=AD$5)*($A$5:$A$999=$AB7)*($G$5:$Z$999)))))

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need to ignore text entered in range for formula

    Although I agree with Speshul
    You'd be better off preventing the invalid entry in the first place.

    Hiding or working around the error isn't always the best thing.
    You will probably be getting a wrong answer from the formula, and not knowing it.
    The Error value let's you know that something is wrong.

    In my opinion, it's the 'expected' errors that are ok to trap and hide.
    I want to see the UN-Expected errors..

  5. #5
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Need to ignore text entered in range for formula

    Jonmo, that was amazing. Thank you. Thank you speshul, as well.

    Pete

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need to ignore text entered in range for formula

    You're welcome.

+ 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] Can lookup formula ignore blank cells until the lookup value has been entered?
    By Ju1cy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-13-2014, 01:32 PM
  2. Lock Range of Cells After Text is Entered
    By cshenold in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2012, 01:21 PM
  3. Replies: 9
    Last Post: 10-25-2011, 10:33 AM
  4. Ignore Text for Formula
    By JohnHill in forum Excel General
    Replies: 2
    Last Post: 04-25-2006, 09:26 PM
  5. Can a calculation ignore text if it occurs in formula's cell range
    By Sally in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2005, 12:50 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