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
Posts: 3,667 Forumite
in Techie Stuff
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
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
0
Comments
-
Yes, its a simple nested IF statement http://www.techonthenet.com/excel/formulas/if_nested.php0
-
InsideInsurance wrote: »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")))0 -
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.0 -
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!0
-
=IF([@GrossPremiumGBP]<10,"Under 10",IF(AND([@GrossPremiumGBP]>=10,[@GrossPremiumGBP]<=500), "Between 10 and 500",IF([@GrossPremiumGBP] >500, "Greater")))
Just fixing the code in post #3.What will your verse be?
R.I.P Robin Williams.0 -
Less typing is always good
=IF([@GrossPremiumGBP]<10,"Under 10",IF([@GrossPremiumGBP]>=500,"Over 500","Between"))0
This discussion has been closed.
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