Formula based on column

caritx

New Member
Joined
Dec 1, 2009
Messages
34
If Column A has data then column b gets the formula.

Column A
(Value)
M

Column B (Formula it should add) =IF(A2="M","Mr.",IF(A2="F",""))



If column B has data then column A gets the formula:


Column B (Has Data) Mr.

Column A (Formula it should add) =IF(B2="Mr.","M",IF(B2="","",IF(B2="Dr.","","F")))

If both have data ignore.
Column A (has value) M

Column B (has value) Mr.


I appreciate any help you can provide!
 
Last edited:

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.
It will take VBA to put formulas in automatically.
But your first formula does not have a False condition for the second IF.

But why not use either VLOOKUPS or ORs when appropriate.
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,270
Members
452,902
Latest member
Knuddeluff

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