EXCEL TO COUNT THE NUMBER OF OCCURENCE & INCREMENT THE REFERENCE NUMBER

Status
Not open for further replies.

LAY2022

New Member
Joined
Jun 19, 2024
Messages
8
Office Version
  1. 365
HI Master,

I am new here and I need an Excel formula to increment the reference number only if the vendor column and date is changed.
Please help.


Thanks,
Lay


ORIGINAL
RefNumberAPAccountVendorTxnDateLineAmount
EFT-01/01/2021
2000​
QGiv
1/1/2021​
39.48​
EFT-01/01/2021
2000​
QGiv
1/1/2021​
39.48​
EFT-01/01/2021
2000​
QGiv
1/1/2021​
39.48​
EFT-01/01/2021
2000​
QGiv
1/1/2021​
39.48​
EFT-01/01/2021
2000​
Republic Services #924
1/1/2021​
302.16​
EFT-01/01/2021
2000​
Square
1/1/2021​
149.47​
EFT-01/01/2021
2000​
Square
1/1/2021​
21.55​
EFT-01/01/2021
2000​
Square
1/1/2021​
99.22​
SHOULD BE THE OUTPUT
RefNumberAPAccountVendorTxnDateLineAmount
EFT-01/01/2021-1
2000​
QGiv
1/1/2021​
39.48​
EFT-01/01/2021-1
2000​
QGiv
1/1/2021​
39.48​
EFT-01/01/2021-1
2000​
QGiv
1/1/2021​
39.48​
EFT-01/01/2021-1
2000​
QGiv
1/1/2021​
39.48​
EFT-01/01/2021-2
2000​
Republic Services #924
1/4/2021​
302.16​
EFT-01/01/2021-3
2000​
Square
1/4/2021​
149.47​
EFT-01/01/2021-3
2000​
Square
1/5/2021​
21.55​
EFT-01/01/2021-3
2000​
Square
1/6/2021​
99.22​
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
According to your rules

increment the reference number only if the vendor column and date is changed.
then the second line here should not have changed as the date is the same. Is that just a mistake or should the rule be different?
EFT-01/01/2021-2
2000​
Republic Services #924
1/4/2021​
302.16​
EFT-01/01/2021-3
2000​
Square
1/4/2021​
149.47​
 
Upvote 0
Duplicate to: EXCEL FORMULA TO COUNT

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 1
Status
Not open for further replies.

Forum statistics

Threads
1,223,885
Messages
6,175,181
Members
452,615
Latest member
bogeys2birdies

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