+ Reply to Thread
Results 1 to 4 of 4

Formula 'stops' part way through?

Hybrid View

lock-e73 Formula 'stops' part way... 03-25-2007, 06:39 PM
Bryan Hessey Hi, try something like ... 03-25-2007, 06:49 PM
lock-e73 Well I'll be ;) Over... 03-25-2007, 07:05 PM
Bryan Hessey yes, you also missed the... 03-25-2007, 10:10 PM
  1. #1
    Registered User
    Join Date
    03-23-2007
    Posts
    6

    Formula 'stops' part way through?

    Hi all,

    Bit of a newbie to the whole Excel programming thing so any help very much appreciated on this small matter

    I have developed (at least I thought I had!) a formula which will give me x% depending on certain < = > values. See below:

    =IF(A10<=499,15%,IF(OR(A10>500,A10<999),10%,IF(OR(A10>1000,A10<2499),8%,IF(OR(A10>2500,A10<5000),7%,5%))))

    Excel accepts the formula but won't give me any % lower than 10%. I was wondering if any of you gurus could point out where I've gone wrong?

    Once again ... any help much appreciated!

    Lock-e73

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by lock-e73
    Hi all,

    Bit of a newbie to the whole Excel programming thing so any help very much appreciated on this small matter

    I have developed (at least I thought I had!) a formula which will give me x% depending on certain < = > values. See below:

    =IF(A10<=499,15%,IF(OR(A10>500,A10<999),10%,IF(OR(A10>1000,A10<2499),8%,IF(OR(A10>2500,A10<5000),7%,5%))))

    Excel accepts the formula but won't give me any % lower than 10%. I was wondering if any of you gurus could point out where I've gone wrong?

    Once again ... any help much appreciated!

    Lock-e73
    Hi,

    try something like

    =IF(A10<500,15%,IF(A10<1000,10%,IF(A10<2500,8%,IF(A10<5000,7%,5%))))

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    03-23-2007
    Posts
    6

    Well I'll be ;) Over formula'd it!

    Hi Bryan,

    Thanks for your quick response. Looks like I've over done it a bit. Thought I'd need all the OR statements to lock it into the particular ranges, but forgot that Excel works 'through' a formula only moving to the next step if the previous is not met.

    Thanks heaps ... saved my bacon!

    Lock-e73

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by lock-e73
    Hi Bryan,

    Thanks for your quick response. Looks like I've over done it a bit. Thought I'd need all the OR statements to lock it into the particular ranges, but forgot that Excel works 'through' a formula only moving to the next step if the previous is not met.

    Thanks heaps ... saved my bacon!

    Lock-e73
    yes, you also missed the =1000 bit (and =999 etc) which would then get 5%, but, good to see it's resolved, and thanks for the response.

    ---

+ 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