+ Reply to Thread
Results 1 to 3 of 3

Do i need macros or multiple IF?

  1. #1
    Registered User
    Join Date
    11-19-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Do i need macros or multiple IF?

    Hey guys

    Lets say in excel, i have one number A
    and another number B.

    The calculation is change, so A/B-100 (percentage change between A and B)

    IFERROR, return "-"
    So, IF
    (A/B-100)^2 less than 0.01, return <1%
    else IF
    (A/B-100) more than 1, return >100%
    else IF
    (A/B-100) less than 1, "not meaningful"
    if all above false,
    return (A/B-100)


    is there a simple way to do this? basically, what it means is first, you calculate the difference of say, $3.00 and $4.00

    if its more than 100% (more than double), the cell gives ">100%"
    if its so small, the cell gives "<1%"
    if the change is from negative to positive, the cell gives "n.m"
    other wise, just give the percentage change ($4/$3-1)

    and iferror (one of the dollars is 0 or no data), give a "-"

    is there a simple way to do this?

  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: Do i need macros or multiple IF?

    A/B-100 ? shouldn't that be A/B-1
    "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
    11-19-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Do i need macros or multiple IF?

    sorry T_T its -1. not -100.

    actually its (A/B-1) * 100

+ 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. How to tie multiple macros together?
    By Jpbrann#3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2023, 05:54 PM
  2. [SOLVED] Multiple Macros From Multiple Dropdown Lists on one sheet.
    By MagyarLou in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-29-2013, 04:33 PM
  3. [SOLVED] Delete multiple empty cells in multiple columns and moving data up, witout Macros
    By CoraF in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2012, 08:23 AM
  4. Help with multiple macros
    By Cyali in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2012, 07:06 PM
  5. Multiple Macros
    By eirikst in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2007, 11:28 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