Summarizing User Input (If and And Statements)

jsiutra

New Member
Joined
Aug 27, 2014
Messages
1
I have a worksheet, which I send out to different users to update with either a
"Y" "N" and "C" in three separate columns and looking for a result in the fourth
column.

Example:

Work to be done 10 yr Plan Restart Current Status

Y Y N Legit
N N N Write-Off
N Y N Legit
N N Y Legit
C Complete

I'm looking for a formula, If/and statements, to be able to derive the current status based on the Y, N, and C inputs from the users.

Thanks in Advance
John
 

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.
Build your own function in the macros area:

In col D, use: getResult(A1,B1,C1)
Code:
Function getResult(pA, pB, pC) As String
'Y Y N Legit
'N N N Write-Off
'N Y N Legit
'N N Y Legit
'C Complete
Select Case True
  Case pA = "Y" And pB = "Y" And pC = "N"
    getResult = "Legit"
  
  Case pA = "N" And pB = "N" And pC = "N"
    getResult = "Write-Off"
  
  Case pA = "N" And pB = "Y" And pC = "N"
    getResult = "Legit"
  
  Case pA = "N" And pB = "N" And pC = "Y"
    getResult = "Legit"
  
  Case pA = "C"
    getResult = "Complete"
End Select
End Function
 
Upvote 0

Forum statistics

Threads
1,214,807
Messages
6,121,679
Members
449,047
Latest member
notmrdurden

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