IF, THEN across multiple columbs

dmelanson

New Member
Joined
Sep 28, 2018
Messages
1
Hello,

I'm looking to create a function that looks across multiple scenarios to give one output. In the screenshot below, columns A-F are going to be data that is hard coded and column G is going to be the output. For example, if column A is different than column D, output should be "GL". If column B is different than column E, output should be "CC". If both column A and B are different than D and E, output should be "GL/CC" and if both of the columns are the same then output should be "NULL". I put in IF formulas for each row, however I can't figure out how to include them altogether. I've been having a lot of trouble with this so any help would be much appreciated!

Thank you!

1601925383503.png
 
Last edited by a moderator:

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
IF(AND(A1=D1,B1=E1),"",IF(AND(A1<>D1,B1<>E1), "GL/CC", IF( A1<> D1 , "GL", "CC")))
I think that should do what you asked
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,877
Members
449,056
Latest member
ruhulaminappu

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