+ Reply to Thread
Results 1 to 4 of 4

Does SUM contain a value - Forumla

  1. #1
    Registered User
    Join Date
    03-31-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    68

    Does SUM contain a value - Forumla

    Hi there..

    Just wondering if anyone knows the formula to search a sum for a value.

    e.g
    A1 =9+4.5+7.3

    what would the formula be to search cell A1 to see if it contains the value "7.3"?

    I tried this with no luck
    =ISNUMBER(SEARCH("7.3",A1))


    Regards
    Chris

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Does SUM contain a value - Forumla

    hi Chris. any normal formula in excel would use the end result of the cell rather than what's inside the formula. this is something new i learned from vlady. follow these steps
    1. click on cell B1
    2. press CTRL + F3
    3. click on New & name it whatever you want. i'll name it FindNum
    4. Refers to:
    =GET.CELL(6,A1)
    the 6 there is to get the contents of the formula. here's a full list:
    http://www.mrexcel.com/forum/excel-q...arguments.html
    5. Close the window.
    6. you can now use your formula, but instead of A1, use the new Named Range
    =ISNUMBER(SEARCH("7.3",FindNum))

    note that by clicking B1 in step (1), Excel is recognizing that you are referencing 1 cell to the left of B1. this is going to be relative to where you use the formula. so if you use it on K10, it will be based on J10 (1 cell to the left of J10). and another thing is that this file now needs to be macro-enabled. you have to save as xls or xlsm. when you open it, you have to enable macros for it to work. regular formulas can't help you. so you either have to use this or macro coding

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Does SUM contain a value - Forumla

    Get.cell (an old xl 4 macro function) can be used to return more info about the worksheet environment than is available with the cell() function.

    See here for details.

    Edit:

    You were too fast Ben!
    Last edited by Fotis1991; 02-07-2014 at 05:34 AM. Reason: Edit
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    03-31-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Does SUM contain a value - Forumla

    Quote Originally Posted by benishiryo View Post
    hi Chris. any normal formula in excel would use the end result of the cell rather than what's inside the formula. this is something new i learned from vlady. follow these steps
    1. click on cell B1
    2. press CTRL + F3
    3. click on New & name it whatever you want. i'll name it FindNum
    4. Refers to:
    =GET.CELL(6,A1)
    the 6 there is to get the contents of the formula. here's a full list:
    http://www.mrexcel.com/forum/excel-q...arguments.html
    5. Close the window.
    6. you can now use your formula, but instead of A1, use the new Named Range
    =ISNUMBER(SEARCH("7.3",FindNum))

    note that by clicking B1 in step (1), Excel is recognizing that you are referencing 1 cell to the left of B1. this is going to be relative to where you use the formula. so if you use it on K10, it will be based on J10 (1 cell to the left of J10). and another thing is that this file now needs to be macro-enabled. you have to save as xls or xlsm. when you open it, you have to enable macros for it to work. regular formulas can't help you. so you either have to use this or macro coding
    Thank you for the detailed instructions. Worked perfect

+ 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] Forumla
    By FSt1 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 PM
  2. [SOLVED] Forumla
    By Don in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. [SOLVED] Forumla
    By Don in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. [SOLVED] Forumla
    By Don in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Replacing a cell's forumla with the forumla's results?
    By Mooncalf in forum Excel General
    Replies: 2
    Last Post: 01-04-2005, 12:35 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