How can I use the values from 2 cells in the same row to create a single new value in a new cell?

Rivermaker

New Member
Joined
Nov 12, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have 2 columns (A & B) of paired numbers ranging from 1 - 7. I need to create four categories (1, 2, 3, & 4) from the paired numbers into a third column (C). If A<4 & B<4 then C = 1. If A<4 & B>4 then C = 2. If A>4 & B<4 then C = 3. And if A>4 & B>4 then C = 4.

Is there a formula that can do that for me???

(Newbie)
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(A2<4,IF(B2<4,1,2),IF(B2<4,3,4))
 
Upvote 0
Solution
Does it look like this?

Book1
ABC
1723
2321
3244
4331
5144
6424
7144
8664
9523
10244
Sheet2
Cell Formulas
RangeFormula
C1:C10C1=IF(AND(A1<4,B1<4),1,IF(AND(A1<4,B1>4),2,IF(AND(A1>4,B1<3),3,4)))
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(A2<4,IF(B2<4,1,2),IF(B2<4,3,4))
I don't understand it, but it works! Thank you so much for such a speedy reply! I'm very grateful.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,580
Members
449,089
Latest member
Motoracer88

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