jake.peterson
Board Regular
- Joined
- May 22, 2012
- Messages
- 68
I have a form built in excel. Based on the value in G20, I want to display the message "This request cannot be processed due to lack of data. See Fields in RED"
G6, G10, G16, G18, and G20 are required on every form. I have that as the first logic test for my formula. After that I want to use the value in G20 to determine if the message should be displayed.
If G20 = "New Hire (ISR)" I want to check the values for D26, D28, D32, D34
If G20 = "New Hire (RIC)" I want to check D26, D28, D32, D38, I26, I28
If G20 = "Role Change with Territory" check D34, D38, I26, I28
If G20 = "Termination" check I20, I40
you get the idea.
In C54 I started the formula:
=IF(OR(ISBLANK(G6),ISBLANK(G10),ISBLANK(G16),ISBLANK(G18),ISBLANK(G20)),"This Form cannot be processed due to lack of data. See Fields in RED",IF(G20="New Hire (ISR)",IF(OR(ISBLANK(D26),ISBLANK(D28),ISBLANK(D32),ISBLANK(D34)),"This Form cannot be processed due to lack of data. See Fields in RED",IF(G20="New Hire with Territory (RIC)",IF(OR(ISBLANK(D26),ISBLANK(D28),ISBLANK(D32),ISBLANK(D38)),"This Form cannot be processed due to lack of data. See Fields in RED","")))))
I got lost in the weeds and I can't figure out where I'm going wrong.
This might be easier to do with a case statement in a macro but I'm not sure how to initiate the macro when they select a value for G20.
any help/advice is appreciated. Thank you
G6, G10, G16, G18, and G20 are required on every form. I have that as the first logic test for my formula. After that I want to use the value in G20 to determine if the message should be displayed.
If G20 = "New Hire (ISR)" I want to check the values for D26, D28, D32, D34
If G20 = "New Hire (RIC)" I want to check D26, D28, D32, D38, I26, I28
If G20 = "Role Change with Territory" check D34, D38, I26, I28
If G20 = "Termination" check I20, I40
you get the idea.
In C54 I started the formula:
=IF(OR(ISBLANK(G6),ISBLANK(G10),ISBLANK(G16),ISBLANK(G18),ISBLANK(G20)),"This Form cannot be processed due to lack of data. See Fields in RED",IF(G20="New Hire (ISR)",IF(OR(ISBLANK(D26),ISBLANK(D28),ISBLANK(D32),ISBLANK(D34)),"This Form cannot be processed due to lack of data. See Fields in RED",IF(G20="New Hire with Territory (RIC)",IF(OR(ISBLANK(D26),ISBLANK(D28),ISBLANK(D32),ISBLANK(D38)),"This Form cannot be processed due to lack of data. See Fields in RED","")))))
I got lost in the weeds and I can't figure out where I'm going wrong.
This might be easier to do with a case statement in a macro but I'm not sure how to initiate the macro when they select a value for G20.
any help/advice is appreciated. Thank you