Formula to show whether invoice is paid AND/OR approved

danhendo888

Board Regular
Joined
Jul 15, 2019
Messages
167
Office Version
  1. 365
Platform
  1. Windows

Book1
ABC
1InvoiceApprovedPayment Date
2150001/01/19
3150001/01/19
41
51
62501
72501
82
92
103
113
12
13
14InvoiceStatus
151Paid
162Approved
173Not Approved
Sheet3

Hello guys,

I have a sheet with invoice information which can be categorized as either:

- Approved = there is a value in Column B but not in Column C
- Paid = there is a value in Column C
- Not Approved= there are no values in Column C AND Column B

B15:B17 is the output I am looking for.
How would you go about creating a formula to show this output?

Invoice 1:
Rows 4-5 represent the booking of invoice 1
Rows 2-3 show that invoice 1 has been paid since there is a date in Column C

FWIW
If an invoice has been paid, as in the case of invoice 1, I don't need to know whether it has been approved or not.


Thank you :)




 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,

Would there be an instance where, for example, C6 has a date, but C7 does not, what would be the result then?
 
Upvote 0
Then, try this:


Book1
ABC
1InvoiceApprovedPayment Date
215001/1/2019
315001/1/2019
41
51
62501
72501
82
92
103
113
12
13
14InvoiceStatus
151PaidPaid
162ApprovedApproved
173Not ApprovedNot Approved
Sheet691
Cell Formulas
RangeFormula
C15=IF(COUNTIFS(A$2:A$11,A15,B$2:B$11,">0"),IF(COUNTIFS(A$2:A$11,A15,C$2:C$11,">0"),"Paid","Approved"),"Not Approved")


C15 formula copied down, change/adjust cell references/range as needed.
 
Upvote 0
Then, try this:

ABC
InvoiceApprovedPayment Date
InvoiceStatus
PaidPaid
ApprovedApproved
Not ApprovedNot Approved

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]500[/TD]
[TD="align: right"]1/1/2019[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]500[/TD]
[TD="align: right"]1/1/2019[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]501[/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]501[/TD]
[TD="align: right"][/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]11[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]14[/TD]

[TD="align: right"][/TD]

[TD="align: center"]15[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]16[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]17[/TD]
[TD="align: right"]3[/TD]

</tbody>
Sheet691

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C15[/TH]
[TD="align: left"]=IF(COUNTIFS(A$2:A$11,A15,B$2:B$11,">0"),IF(COUNTIFS(A$2:A$11,A15,C$2:C$11,">0"),"Paid","Approved"),"Not Approved")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]



C15 formula copied down, change/adjust cell references/range as needed.


Thank you so much! It works beautifully.
You've made my day :)
 
Upvote 0
You're welcome, welcome to the forum, and thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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