Question description:
This user has given permission to use the problem statement for this
blog.
I want to set up a spreadsheet that gives prices based on a number value.
For example;
If there is between 1-10 of an item the price would be £50
If there was between 11-20 of an item the price would be £40
If there was between 21-30 of an item the price would be £30
I would like to be able to input numbers in one column and it give me the price based on that number in the next column
Solved by I. D. in 20 mins
This is the chat thread from the real Excelchat help session. It contains no private user
information.
Excelchat Expert
25/04/2018 - 02:45
Hi there!
Excelchat Expert
25/04/2018 - 02:45
Great problem description - it makes perfect sense.
Excelchat Expert
25/04/2018 - 02:45
Did you want to share your file and I can code the formula directly on it? Or - we could create a quick example in the google sheet ----->
User
25/04/2018 - 02:46
I haven't set up a file yet so if you could show me an example on the google sheet that would be great
Excelchat Expert
25/04/2018 - 02:46
Absolutely!
Excelchat Expert
25/04/2018 - 02:47
I think the best bet will be to use the IFS function
Excelchat Expert
25/04/2018 - 02:48
if it's OVER 30 items, then is it also 30£?
User
25/04/2018 - 02:48
yes, that would be the max price in this example
Excelchat Expert
25/04/2018 - 02:48
Fantastic
Excelchat Expert
25/04/2018 - 02:51
Take a look at that example in the google sheets and let me know if that is what you're after
Excelchat Expert
25/04/2018 - 02:51
The formula is:
Excelchat Expert
25/04/2018 - 02:51
=ifs(A2<=10,50,A2<=20,40,A2>20,30)
User
25/04/2018 - 02:52
I'm assuming I can extend the formula to include as many price ranges as i need?
Excelchat Expert
25/04/2018 - 02:52
Yeah exactly!
User
25/04/2018 - 02:53
brilliant!
Excelchat Expert
25/04/2018 - 02:53
Please ping us back if you need further assistance and we will be happy to help!
User
25/04/2018 - 02:53
Thank you!
Excelchat Expert
25/04/2018 - 02:53
My pleasure ~
This is the output file from the real Excelchat help session:
This is an example of the expert help you can get. It contains no private user
information.