First & Subsequent Occurrences

blakeboyuk

New Member
Joined
Mar 5, 2020
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Good Day

Please let me begin with an apology for my lack of knowledge and understanding regarding MS Excel. Now I will explain my problem as best I can.

I have a list of dates (column A) and UK post codes (column B) in a spreadsheet. In column C I need to put a charge for a delivery service however, the charge for the first package (or line) delivered is £11.77 and any subsequent package (line) is £4.71.

What I would love is to find a formula to be used in column C which applies the £11.77 charge for the first occurrence of the postcode and then £4.71 if this shows as a duplicate. The additional complexity is that the formula would need to factor in the date as its likely that postcodes can reoccur on multiple dates but the £11.77 charge would need to apply on any new date. I hope that makes sense.

Many thanks for your help

David
 

Attachments

  • first and subs.PNG
    first and subs.PNG
    20.7 KB · Views: 5

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi & welcome to MrExcel.
How about
=IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2)=1,11.77,4.71)
 
Upvote 0
Fantastic, thank you Fluff. I had a feeling an IF and COUNTIF was needed but couldn't see through the mist in my mind.

Thanks so much for your help.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,521
Members
449,088
Latest member
RandomExceller01

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