+ Reply to Thread
Results 1 to 3 of 3

Modify Formula to ignore character

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Modify Formula to ignore character

    Please, may someone can help to modify this formula to ignore character * and evaluate the numeric value on the referenced cells. I using this formula to sume the 2 largest values on the range of cells G39:G50 or to return the just one value

    Formula: copy to clipboard
    =IFERROR(IF(COUNT(G39:G50)=1,SUM(G39:G50),LARGE(G39:G50,1)+LARGE(G39:G50,2)),"0.00")


    Some time i need to add an * leading the numeric value on the referenced cells G39:G50 Eg. may one or more of this cells have
    the content *9 or *4.5 etc. and the formula i'am using does not evaluate this cells. I'am trying to modify the formula to ignore the * and evaluate the numeric value on those cells.

    Any help greatly appreciated, thanks!

  2. #2
    Registered User
    Join Date
    09-01-2011
    Location
    georgia
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Modify Formula to ignore character

    I would try this for your equation. Keep in mind that this is an array formula so when you enter it into a cell, submit it by pressing CTRL+SHIFT+ENTER and it will calculate your value of two largest numbers while ignoring the "*" character.

    =IFERROR(IF(COUNT(G39:G50)=1,SUM(IF(LEFT(G39:G50,1)="*",VALUE(RIGHT(G39:G50,LEN(G39:G50)-1)),G39:G50)),LARGE(IF(LEFT(G39:G50,1)="*",VALUE(RIGHT(G39:G50,LEN(G39:G50)-1)),G39:G50),1)+LARGE(IF(LEFT(G39:G50,1)="*",VALUE(RIGHT(G39:G50,LEN(G39:G50)-1)),G39:G50),2)),"0.00")
    <----Don't forget to add reputation if I helped

  3. #3
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Modify Formula to ignore character

    Thank you very much persecuted, work perfect, thanks for taking of your time to help with this, stoked!!
    Quote Originally Posted by persecuted View Post
    I would try this for your equation. Keep in mind that this is an array formula so when you enter it into a cell, submit it by pressing CTRL+SHIFT+ENTER and it will calculate your value of two largest numbers while ignoring the "*" character.

    =IFERROR(IF(COUNT(G39:G50)=1,SUM(IF(LEFT(G39:G50,1)="*",VALUE(RIGHT(G39:G50,LEN(G39:G50)-1)),G39:G50)),LARGE(IF(LEFT(G39:G50,1)="*",VALUE(RIGHT(G39:G50,LEN(G39:G50)-1)),G39:G50),1)+LARGE(IF(LEFT(G39:G50,1)="*",VALUE(RIGHT(G39:G50,LEN(G39:G50)-1)),G39:G50),2)),"0.00")

+ 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. Replies: 5
    Last Post: 12-16-2012, 07:02 PM
  2. How To Get Vlookup To Ignore A Character
    By mightyeskimo in forum Excel General
    Replies: 2
    Last Post: 03-03-2012, 12:56 PM
  3. How to ignore 10th character in a row?
    By lionheart222 in forum Excel General
    Replies: 5
    Last Post: 07-15-2009, 08:49 AM
  4. [SOLVED] How do I ignore a character in a cell?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2005, 05:10 AM
  5. Modify to ignore the first row.
    By Steved in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2005, 02:00 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