+ Reply to Thread
Results 1 to 3 of 3

How to change formula from excel to function.

  1. #1
    Registered User
    Join Date
    09-25-2018
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    6

    How to change formula from excel to function.

    totally 0 on VBA, hope can get full advice and explanation.

    im having a very long formula, unable to learn macro to put it in, and i'm dono about vba coding.


    below is my formula, and im need press shift ctrl and enter.
    =IF(OR(EXACT(F2,"resistor"),EXACT(F2,"capacitor")),IF(INDEX(A_S!$H$2:$H$17,MATCH(1,(A_S!$D$2:$D$17=$F2)*(A_S!$E$2:$E$17<=$C2)*(A_S!$F$2:$F$17>$C2)*(A_S!$G$2:$G$17>=$D2),0))=3,D2+3,(INDEX(A_S!$H$2:$H$17,MATCH(1,(A_S!$D$2:$D$17=$F2)*(A_S!$E$2:$E$17<=$C2)*(A_S!$F$2:$F$17>$C2)*(A_S!$G$2:$G$17>=$D2),0)))),"")

  2. #2
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    Re: How to change formula from excel to function.

    how about:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-25-2018
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    6

    Re: How to change formula from excel to function.

    Quote Originally Posted by aarona View Post
    how about:

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    it not work,

    other then this,im try do something like if A1 = "FORMULA1" then do formula 1 , if A1 = "FORMULA2" then do formula 2.

+ 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] Function to change the color of the font if the formula is true
    By Root River Hardwoods in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-16-2015, 12:03 AM
  2. Function to change measurements in Excel
    By crtnyk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2014, 04:59 PM
  3. formula/function/macro to change data
    By symphonic in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2011, 08:41 PM
  4. Error: A function in this formula causes the result to change ...
    By Sally27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2011, 09:36 AM
  5. Replies: 5
    Last Post: 02-06-2010, 11:45 AM
  6. Change the formula of a target cell in a self-defined worksheet function
    By mxcaocao in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2008, 02:50 PM
  7. change formula to code function
    By Corey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2006, 02:36 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