+ Reply to Thread
Results 1 to 4 of 4

How to, "If ......then" etc

  1. #1
    Registered User
    Join Date
    06-07-2007
    Posts
    15

    How to, "If ......then" etc

    Hi,

    Want to reference a particular cell withinin a formula and say

    if < 20 then 5%, if >20 but <30 then 4%, if >30 then 3%

    any idea how to do that ?

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi there,

    Let me know if the following does the trick (change the A1 cell reference to suit):

    =IF(A1<20,5%,IF(AND(A1>20,A1<30),4%,3%))

    HTH

    Robert

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Or

    =LOOKUP(A1,{1,20,30},{"5%","4%","3%"})
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    06-07-2007
    Posts
    15
    Thanks Guys, worked perfectly

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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