+ Reply to Thread
Results 1 to 8 of 8

if function for finding specific cells in formulae

  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    Bangkok
    MS-Off Ver
    Excel 2010
    Posts
    23

    if function for finding specific cells in formulae

    Hi all,

    I have 6 columns with many different calculations to obtain individual mixtures for each cell. The numbers for these calculations are derived from other cells. I would now like to have an if function that gives me a yes in a new column for whenever a certain cell appears in one of the calculation.

    E.G

    calculation: in cell A1 is =e1+h1+k1
    in cell B2 is =e2+g2+i2
    in cell c2 is =f2+h2+i2 etc

    Now I want a formula that gives me a yes in cell d if any calculation in the respective row, range a-c contains a value from column f.

    Can that be done?

    Or in other words, I need an if function that searches for criteria in existing formulas.

    Thanks heaps.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: if function for finding specific cells in formulae

    Can that be done?
    Not with regular formulas. excel formulas work on what is displayed, not what the underlying formula is.

    You can test this by using =LEFT(A1,3) when A1 contains =SUM(B1:B10)...
    A
    B
    C
    1
    5500
    100
    550
    2
    200
    3
    300
    4
    400
    5
    500
    6
    600
    7
    700
    8
    800
    9
    900
    10
    1000


    If =SUM(B1:B10) shows 5500, then =LEFT(A1,3) will only show 550, not =SU

    What exactly are you trying to do here?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-28-2012
    Location
    Bangkok
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: if function for finding specific cells in formulae

    I have a long list of different ingredient mixtures in these formulas. They are all foodstuff. The value produced is the overall protein content. However, other factors apart from protein are also relevant so I need to know which of these mixtures contain certain components (let's say vegetables).

    If I have to do that by hand it would take me ages and is prone to mistake. Also, I could not change the variables to look later eventually for different components.

    So is there no way of finding out which formula links to which cells and use use that as criteria?



  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: if function for finding specific cells in formulae

    Can you show me what you have, and what you want? (sample workbook)

  5. #5
    Registered User
    Join Date
    09-28-2012
    Location
    Bangkok
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: if function for finding specific cells in formulae

    I hope that works.

    Where it says now only "yes" in column R it would be great to have a formula that identifies if a specific cell from columns S-Z appears in the formulas in columns A-Q.

    Can do?

    Thanks a lot.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: if function for finding specific cells in formulae

    What determines which columns get used in the calc?

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: if function for finding specific cells in formulae

    Your profile says Excel 2010. Is there any chance you have access to Excel 2013 as well? There's a new function FORMULATEXT.
    Last edited by FlameRetired; 05-22-2015 at 02:44 AM.

  8. #8
    Registered User
    Join Date
    09-28-2012
    Location
    Bangkok
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: if function for finding specific cells in formulae

    Darn, no, I only have 2010.

    @FDibbins: It is basically random otherwise I could find a way around it. It is data coming out of a survey and there is no logical pattern to it.

    I never imagined that something so "simple" could be such a headache...

+ 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. Finding specific pattern, hiding other cells
    By andy.k in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2013, 12:50 AM
  2. [SOLVED] Left/Right function in VBA, finding a specific starting character
    By astronut325 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2012, 01:26 AM
  3. Finding specific data within cells
    By cquest in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-07-2011, 01:26 PM
  4. Getting range of cells with specific text colour, then using in a COUNTIF formulae
    By cheekyflash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2006, 08:58 PM
  5. [SOLVED] Finding cells with a specific number of characters
    By Kamran in forum Excel General
    Replies: 6
    Last Post: 03-29-2006, 06:10 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