Help with formula

Moose2019

Spammer
Joined
Sep 26, 2019
Messages
1
Hi, i have a range of sales starting in column Q2 and I need to add a formula that will add a value based on the range of the sale. Say Q3 has a sale value of 43.00 I would want this to return Group A because its within the 0-50 range of sales for first column. The complete list would be:

Group A: 0-50
Group B: 51-99
Group C:100-199
Group D: 200-499
Group E:500-999
Group F: 1000-1999
Group G: 2000 and above

Thanks so much for any help.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to the Board!

You can use VLOOKUP to do this. Just make a two column lookup table, where the first column is the LOWER limit of each range (0, 51, 100, ...) and the second column is the Group Name you want returned. Let's say that range is A1:B7, and the value we want to look up (43) in is cell C1.

Then, we could use a VLOOKUP formula like this:
Code:
=VLOOKUP(C1,$A$1:$B$7,2,TRUE)

Here is a write-up with more detail on this method: https://www.howtogeek.com/406053/how-to-use-vlookup-on-a-range-of-values/
 
Last edited:
Upvote 0
How about
="GROUP "&LOOKUP(Q3,{0,51,100,200,500,1000,2000},{"A","B","C","D","E","F","G"})
 
Upvote 0

Forum statistics

Threads
1,214,795
Messages
6,121,624
Members
449,041
Latest member
Postman24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top