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.

📨 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!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

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: 3,908 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

🚀 Getting Started

Hi new member!

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

Categories

  • All Categories
  • 353.5K Banking & Borrowing
  • 254.1K Reduce Debt & Boost Income
  • 455K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 602.9K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K 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.