+ Reply to Thread
Results 1 to 8 of 8

Need a function since formula is very big (Mega formula)

  1. #1
    Registered User
    Join Date
    08-11-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Need a function since formula is very big (Mega formula)

    Hello Excel Guru's and Moderator's,

    I need help in one excel activity. I am trying to record the formula in excel however same is not getting recorded as the length of formula is very high.

    I request you to kindly create a function for the same.

    Note: Please do not create an alternative formulas rather try to give a function since I would be needing the same for other purpose as well.

    Thanks in advance!

    Regards,
    Sandeep
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need a function since formula is very big (Mega formula)

    very strange formula? why are you using countif() on one cell?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-11-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Need a function since formula is very big (Mega formula)

    I am using the countif because I wanted to see if the the cell contains any text which is given in my formula e.g. prophylaxis, vaccine, prevention like that

  4. #4
    Registered User
    Join Date
    08-11-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Need a function since formula is very big (Mega formula)

    I am using the countif because I wanted to see if the the cell contains any text which is given in my formula e.g. prophylaxis, vaccine, prevention like that

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need a function since formula is very big (Mega formula)

    since you are going you need a list of search words anyway you might just as well use
    =IF(A2="","",IF(ISNUMBER(LOOKUP(10^99,SEARCH($D$1:$D$20,A2))),"Not an Indication?","Indication"))
    where d1:d20 contain
    prophylaxis,prophy,prophi,profy,propylaxis,prevention,prevent,protection,supplement,general health,Vitamin,Vaccine,unknown,surgery,propi,suppl,therapy,A8,preganancy
    mind you i'd probably spell pregnancy correctly

  6. #6
    Registered User
    Join Date
    08-11-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Need a function since formula is very big (Mega formula)

    Thanks Much!

    But it did not work; attached is the workbook with your formula; you can see how the formula give the result as 'Not an indication" for any text.

    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need a function since formula is very big (Mega formula)

    Hello sandip ! you don't have data till D20 its only upto 7 cells
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  8. #8
    Registered User
    Join Date
    08-11-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Need a function since formula is very big (Mega formula)

    Attached Now with correction!
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-11-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Need a function since formula is very big (Mega formula)

    It is resolved now thanks much MartinDWilson and Hemesh

+ 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. mega formula
    By arnab0711 in forum Excel General
    Replies: 1
    Last Post: 02-27-2012, 03:09 AM
  2. Consolidated Report building using mega formula or VBA
    By excel5111987 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2011, 09:18 AM
  3. Replies: 5
    Last Post: 08-26-2009, 10:21 AM
  4. Help with a mega argument formula
    By MXkid77 in forum Excel General
    Replies: 2
    Last Post: 12-13-2008, 12:10 PM
  5. MEGA FORMULA
    By Ray in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-13-2006, 02: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