We'd like to remind Forumites to please avoid political debate on the Forum. This is to keep it a safe and useful space for MoneySaving discussions. Threads that are - or become - political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

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: 2,790 Forumite
    Part of the Furniture 1,000 Posts Photogenic Name Dropper
    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 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker Debt-free and Proud!
    =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 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    Less typing is always good :)

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

Categories

  • All Categories
  • 346.2K Banking & Borrowing
  • 251.2K Reduce Debt & Boost Income
  • 451.2K Spending & Discounts
  • 238.3K Work, Benefits & Business
  • 613.5K Mortgages, Homes & Bills
  • 174.6K Life & Family
  • 251.5K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 15.1K Coronavirus Support 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.