📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Excel Query

Cotta
Cotta Posts: 3,667 Forumite
Hi All,

I have volumes in column "J" and I want to input a formula into column "K" to define if the value is less than 100, between 100 and 500 or if it's greater than 500. Is this possible and if so how?

Thanks

Comments

  • Yes, its a simple nested IF statement http://www.techonthenet.com/excel/formulas/if_nested.php
  • Cotta
    Cotta Posts: 3,667 Forumite
    Yes, its a simple nested IF statement http://www.techonthenet.com/excel/formulas/if_nested.php

    Tried the following but it keeps returning an error.

    =IF([@GrossPremiumGBP]<10,"Under 10" IF([@GrossPremiumGBP]>10<=500, "Between 10 and 500"" IF([@GrossPremiumGBP] >500, "Greater")))
  • Bigphil1474
    Bigphil1474 Posts: 4,337
    Part of the Furniture 1,000 Posts Photogenic Name Dropper
    Forumite
    Cotta - you need to start the other way round. Try :-


    =IF(A2>500,"Greater",IF(A2>10,"Between 10 and 500",IF(A2>0,"Under 10")))


    Replaced your grosspremium cell ref with A2, but if you start at >500 = Greater, then between, then under 10, should work. Basically saying if it s greater than 500 then that's it, if its not, it goes to the next IF and so on. Tested and worked for me, just need to reference the right cell.
  • paddyrg
    paddyrg Posts: 13,543 Forumite
    Even more fun, you can use conditional formatting in column J to colour the cells for the different value ranges :-) I thought it was a gimmick until I started using it - then use it loads, it's really useful!
  • matttye
    matttye Posts: 4,828
    Part of the Furniture 1,000 Posts Combo Breaker Debt-free and Proud!
    Forumite
    =IF([&#64;GrossPremiumGBP]<10,"Under 10",IF(AND([&#64;GrossPremiumGBP]>=10,[&#64;GrossPremiumGBP]<=500), "Between 10 and 500",IF([&#64;GrossPremiumGBP] >500, "Greater")))
    

    Just fixing the code in post #3.
    What will your verse be?

    R.I.P Robin Williams.
  • GRM
    GRM Posts: 645
    Part of the Furniture 500 Posts Combo Breaker
    Forumite
    Less typing is always good :)

    =IF([@GrossPremiumGBP]<10,"Under 10",IF([@GrossPremiumGBP]>=500,"Over 500","Between"))
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 355.9K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.2K Spending & Discounts
  • 248.4K Work, Benefits & Business
  • 606.1K Mortgages, Homes & Bills
  • 179K Life & Family
  • 263.9K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.