Multi-function formula syntax

TWienholz

Board Regular
Joined
Aug 3, 2016
Messages
54
Good morning all. I have been wracking my brain trying to get the proper syntax for a formula that will take the information from 3 different cells providing multiple scenarios and give a specific envelope size result based that criteria. The criteria is as follows (table sample below):

=IF(B13="","",IF(AND(B6="01 CAS: CAHPS",B6="02 CCS: CAHPS",B6="03 CCS CCC: CAHPS",B6="04 MAS: CAHPS",B6="05 MCS: CAHPS",B6="06 MCS CCC: CAHPS",B6="06 MCS CCC: CAHPS Simulation",B6="07 HCAHPS",B6="08 HOS Simulation",B6="09 Call Sat",B6="09 Case Management",B6="09 CG CAHPS",B6="09 Disease Management",B6="09 ECHO - Behavioral Health",B6="09 Member Sat",B6="09 OAS CAHPS",B6="09 Provider Sat",B6="09 CAHPS Simulation",B6="50 PCMH - Adult",B6="60 PCMH - Child",I13="Single Stuff",I13="Split",j6="1 - 8.5 x 11", j6="2 - 8.5 x 14",j6="1 - 11 x 17", j6="2 - 11 x 17"),"#10.5 Window"),

IF(AND(B6="01 CAS: CAHPS",B6="02 CCS: CAHPS",B6="03 CCS CCC: CAHPS",B6="04 MAS: CAHPS",B6="05 MCS: CAHPS",B6="06 MCS CCC: CAHPS",B6="06 MCS CCC: CAHPS Simulation",B6="07 HCAHPS",B6="08 HOS Simulation",B6="09 Call Sat",B6="09 Case Management",B6="09 CG CAHPS",B6="09 Disease Management",B6="09 ECHO - Behavioral Health",B6="09 Member Sat",B6="09 OAS CAHPS",B6="09 Provider Sat",B6="09 CAHPS Simulation",B6="50 PCMH - Adult",B6="60 PCMH - Child",I13="Double Stuff",j6="1 - 11 x 17", j6="2 - 11 x 17"),"6 x 10 Window"),

IF(AND(B6="09 MCAHPS Simulation",B6="09 QHP Simulation",B6="10 MA ONLY: MCAHPS",B6="20 PDP ONLY: MCAHPS",B6="30 MA-PDP: MCAHPS",B6="70 ACO CAHPS",B6="80 QHP",B6="90 MIPS CAHPS",I20="Single Stuff",I13="Split",j6="1 - 11 x 17", j6="2 - 11 x 17",j6="3 - 11 x 17"),"6 x 10 Window"),

IF(AND(B6="70 ACO CAHPS",B6="80 QHP",B6="09 QHP Simulation"B6="90 MIPS CAHPS",I13="Double Stuff",j6="1 - 11 x 17", j6="2 - 11 x 17",j6="3 - 11 x 17"),"6 x 10 Window"),

IF(AND(B6="09 MCAHPS Simulation",B6="10 MA ONLY: MCAHPS",B6="20 PDP ONLY: MCAHPS",B6="30 MA-PDP: MCAHPS",I13="Double Stuff",j6="3 - 11 x 17"),"9 x 12 Window")

ABCDEFGHIJ
1
2PROJECT DESCRIPTION
3MPL #:101020* Account Project Manager:
4* Client Name:ABC Company* Project Coordinator:
5* Parent Company:Mom & Pop Company* Prior Sample #:9128000
6* Project Description:01 CAS: CAHPS* Survey Size:1 – 11 x 17
7* Total Seeds:1
8* # Waves with Project:2
9* Enter language if “Other” is selected:English
10*Initial Scheduled Mail Date:TBD
11
12Sample Number(s)Sample Size
Bleed?
Back Page?Text Format
Need?

Size
*Language Protocol
Size
131 9138000500- SELECT ONE -- SELECT ONE -Single Stuff#10.5 Window
142 91380011000Double Stuff6 x 10 Window

<tbody>
</tbody>

Please excuse my long hand. I know this is ridiculously extra and not the easiest way to accomplish this, but since it is not a range of cells indexing or lookup functions wouldn’t work, I keep getting too many function errors on any If/And functions, and I don’t know VBA to try and make it work that way. I just need to find a way to make sure the correct envelope size is being chosen automatically per project specs so that I can avoid having to request reprints for account people who can’t seem to figure this out. Please help!

Thank you in advance for any assistance rendered!
 
ignore previous post - I forgot it was within and or

I can't help thinking there must be a smarter way to do this - could you knock up a logic diagram for your requirements ?
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,215,753
Messages
6,126,677
Members
449,327
Latest member
John4520

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