Coding for if then statement not working right

CrashOD

Board Regular
Joined
Feb 5, 2019
Messages
118
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
Cell Formulas
RangeFormula
D68D68=INDEX('C&L 2014'!$B$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1)
E68E68=INDEX('C&L 2014'!$G$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1)
F68F68=INDEX('C&L 2014'!$H$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1)
G68G68=INDEX('C&L 2014'!$I$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1)
H68H68=INDEX('C&L 2014'!$M$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1)
I68I68=IF(INDEX('C&L 2014'!$F$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1)="","",INDEX('C&L 2014'!$F$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1))
J68J68=IF(INDEX('C&L 2014'!$N$2:$R$7003,MATCH($A$2,'C&L 2014'!$N$2:$N$7003,0),5)="","",IF(INDEX('C&L 2014'!$N$2:$R$7003,MATCH($A$2,'C&L 2014'!$N$2:$N$7003,0),5)=" ","",INDEX('C&L 2014'!$N$2:$R$7003,MATCH($A$2,'C&L 2014'!$N$2:$N$7003,0),5)))
B68B68=IF(INDEX('C&L 2014'!$A$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1)="","",INDEX('C&L 2014'!$A$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1))
B69B69=IF(INDEX('SK 2014'!$A$2:$T$5393,MATCH($A$2,'SK 2014'!$T$2:$T$5393,0),1)="","UNPAID",INDEX('SK 2014'!$A$2:$T$5393,MATCH($A$2,'SK 2014'!$T$2:$T$5393,0),1))
D69D69=INDEX('SK 2014'!$B$2:$T$5393,MATCH($A$2,'SK 2014'!$T$2:$T$5393,0),1)
E69E69=INDEX('SK 2014'!$T$2:$X$5393,MATCH($A$2,'SK 2014'!$T$2:$T$5393,0),5)
F69F69=INDEX('SK 2014'!$T$2:$Y$5393,MATCH($A$2,'SK 2014'!$T$2:$T$5393,0),6)
G69G69=INDEX('SK 2014'!$T$2:$Z$5393,MATCH($A$2,'SK 2014'!$T$2:$T$5393,0),7)
H69H69=INDEX('SK 2014'!$S$2:$T$5393,MATCH($A$2,'SK 2014'!$T$2:$T$5393,0),1)
I69I69=IF(INDEX('SK 2014'!$F$2:$T$5393,MATCH($A$2,'SK 2014'!$T$2:$T$5393,0),1)="","",INDEX('SK 2014'!$F$2:$T$5393,MATCH($A$2,'SK 2014'!$T$2:$T$5393,0),1))
D70D70=IF(INDEX('SK 2014'!$H$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1)="","",INDEX('SK 2014'!$H$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1))
E70E70=IF(C70="","",IF(C70>0,"FACE"))
D71D71=IF(INDEX('SK 2014'!$J$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1)="","",INDEX('SK 2014'!$J$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1))
E71E71=IF(D70="","",IF(C69="UNPAID","",IF(D71="","",IF(D70>=(D71-0.03),"FACE",IF(D70<D71,"PENALTY")))))
D72D72=IF(INDEX('SK 2014'!$L$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1)="","",INDEX('SK 2014'!$L$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1))
E72E72=IF(D71="","",IF(C69="UNPAID","",IF(D72="","",IF(D70>SUM(D72-0.03),"FACE",IF(D70<D72,"PENALTY")))))
D73D73=IF(D70="","",IF(SUMIF(C70:C72,"<>",D70:D72)>=F69,"Paid In Full",IF(SUMIF(C70:C72,"<>",D70:D72)<0.03,"Paid In Full",IF(F69>SUMIF(C70:C72,"<>",D70:D72),SUMIF(C70:C72,"<>",D70:D72)-F69,"help"))))
E73E73=IF($D73>=0,"","SHORT in Face")
C68C68=IF(INDEX('C&L 2014'!$C$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1)="","UNPAID",INDEX('C&L 2014'!$C$2:$N$5595,MATCH($A$2,'C&L 2014'!$N$2:$N$5595,0),1))
C69C69=IF(INDEX('SK 2014'!$C$2:$T$6897,MATCH($A$2,'SK 2014'!$T$2:$T$6897,0),1)="","UNPAID",IF(D73="Paid In Full",C72,IF(D73="",INDEX('SK 2014'!$C$2:$T$6897,MATCH($A$2,'SK 2014'!$T$2:$T$6897,0),1),"Short")))
C70C70=IF(INDEX('SK 2014'!$G$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1)="","",INDEX('SK 2014'!$G$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1))
C71C71=IF(INDEX('SK 2014'!$I$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1)="","",INDEX('SK 2014'!$I$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1))
C72C72=IF(INDEX('SK 2014'!$K$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1)="","",INDEX('SK 2014'!$K$2:$T$6865,MATCH($A$2,'SK 2014'!$T$2:$T$6865,0),1))
Named Ranges
NameRefers ToCells
'SK 2014'!CSV49XLS_6='SK 2014'!$A$2:$Z$4187B69
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D73Cell Value<0textNO


should show

2014 C&LWIGHTMAN JOSEPH S JR/ CHERYL ANN4/30/201401200705$441.73$450.75$495.83$6,250
2014 SCHOOLWIGHTMAN JOSEPH S JR/CHERYL ANN12/17/20141200708$101.51$103.58$113.94$6,250
Payment 17/31/201434.52FACE
Payment 210/22/201437.98PENALTY
Payment 312/17/201437.98PENALTY
TotalPaid In Full
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
should show

2014 C&LWIGHTMAN JOSEPH S JR/ CHERYL ANN4/30/201401200705$441.73$450.75$495.83$6,250
2014 SCHOOLWIGHTMAN JOSEPH S JR/CHERYL ANN12/17/20141200708$101.51$103.58$113.94$6,250
Payment 17/31/201434.52FACE
Payment 210/22/201437.98PENALTY
Payment 312/17/201437.98PENALTY
TotalPaid In Full

Your IF formulas seem to work as expected when I try them.
Book1
ABCDEFGH
682014 C&LWIGHTMAN JOSEPH S JR/ CHERYL ANN4/30/20141200705$441.73$450.75$495.83$6,250
692014 SCHOOLWIGHTMAN JOSEPH S JR/CHERYL ANN12/17/20141200708$101.51$103.58$113.94$6,250
70Payment 17/31/201434.52FACE
71Payment 210/22/201437.98PENALTY
72Payment 312/17/201437.98PENALTY
Sheet2
Cell Formulas
RangeFormula
E70E70=IF(C70="","",IF(C70>0,"FACE"))
E71E71=IF(D70="","",IF(C69="UNPAID","",IF(D71="","",IF(D70>=(D71-0.03),"FACE",IF(D70<D71,"PENALTY")))))
E72E72=IF(D71="","",IF(C69="UNPAID","",IF(D72="","",IF(D70>SUM(D72-0.03),"FACE",IF(D70<D72,"PENALTY")))))
 
Upvote 0
Your IF formulas seem to work as expected when I try them.
Book1
ABCDEFGH
682014 C&LWIGHTMAN JOSEPH S JR/ CHERYL ANN4/30/20141200705$441.73$450.75$495.83$6,250
692014 SCHOOLWIGHTMAN JOSEPH S JR/CHERYL ANN12/17/20141200708$101.51$103.58$113.94$6,250
70Payment 17/31/201434.52FACE
71Payment 210/22/201437.98PENALTY
72Payment 312/17/201437.98PENALTY
Sheet2
Cell Formulas
RangeFormula
E70E70=IF(C70="","",IF(C70>0,"FACE"))
E71E71=IF(D70="","",IF(C69="UNPAID","",IF(D71="","",IF(D70>=(D71-0.03),"FACE",IF(D70<D71,"PENALTY")))))
E72E72=IF(D71="","",IF(C69="UNPAID","",IF(D72="","",IF(D70>SUM(D72-0.03),"FACE",IF(D70<D72,"PENALTY")))))
I have no clue then why it is not working. I played with the code so many times and just can not get it to work. I get it to say penalty or gives error but then when face says penalty or error. I don't know how else to fix this.
I have it formatted as Accountant $ no $ shows.
 
Upvote 0
Your IF formulas seem to work as expected when I try them.
Book1
ABCDEFGH
682014 C&LWIGHTMAN JOSEPH S JR/ CHERYL ANN4/30/20141200705$441.73$450.75$495.83$6,250
692014 SCHOOLWIGHTMAN JOSEPH S JR/CHERYL ANN12/17/20141200708$101.51$103.58$113.94$6,250
70Payment 17/31/201434.52FACE
71Payment 210/22/201437.98PENALTY
72Payment 312/17/201437.98PENALTY
Sheet2
Cell Formulas
RangeFormula
E70E70=IF(C70="","",IF(C70>0,"FACE"))
E71E71=IF(D70="","",IF(C69="UNPAID","",IF(D71="","",IF(D70>=(D71-0.03),"FACE",IF(D70<D71,"PENALTY")))))
E72E72=IF(D71="","",IF(C69="UNPAID","",IF(D72="","",IF(D70>SUM(D72-0.03),"FACE",IF(D70<D72,"PENALTY")))))
thank you so much! i think I figured it out. I went to each Colum and did the text to columns and did that and it fixed it. allows formatting and shows right thing now it seems. I know the company that provides use the workbooks told use to do that to fix there work.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,148
Members
453,021
Latest member
Justyna P

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