Quick Help

Irwell

Board Regular
Joined
May 24, 2012
Messages
54
Office Version
  1. 365
Platform
  1. Windows
Hi friends,

Can someone help me with working out a formula for the below, my head is hurting from getting wrong a few times.

Column A is a Yes or No
Column B is a number 1 to 4
Column C needs to be a formula that returns the following

"Code 1" if column b is 2 and column a is yes
"Code 2" if column b is 2 and column a is no
"Code 3" if column b is 3 and column a is yes
"code 4" if column b is 3 and column a is no

Many thanks,
Irwell
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
What happens if B is 1 or 4?
Also what happens if A or B are blank?
 
Upvote 0
What happens if B is 1 or 4?
Also what happens if A or B are blank?

Nothing if one or 4, no formulas kick in if A or B are blank. Think I've done it now though, thank you for responding.
 
Upvote 0
Glad you sorted it & thanks for the feedback
 
Upvote 0
Glad you sorted it & thanks for the feedback

Sometimes it is good to verbalise (or in this case type) something and it suddenly gives you a different perspective :D
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

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