Ignore Duplicate Entry in Formula

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to work out if the following formula could ignore a duplicate entry when returning the relevant number

=IF(G12="","",IF(S12="Monday",7.5,IF(S12="Tuesday",7.5,IF(S12="Wednesday",7.5,IF(S12="Thursday",7.5,IF(S12="Friday",7,IF(S12="Saturday",0,IF(S12="Sunday",0))))))))

if there is a duplicate entry (Which could be possible) i need the formula to return only 1 result and not 2

Is this possible?

Thanks
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi,

Sorry but you say "duplicate entry" what do you mean ... in which cell ? how can you have a duplicate entry in a given cell ?
 
Upvote 0
Yes not very clear sorry

So this formula returns the number relating to a particular day from S12 (Date format 03/04/23)
Now my issue is if there is 2 entries against the same date then the formula above will return 7.5 for each entry
Can the formula be adapted to only display the first entry

Thanks
 
Upvote 0
Just to add i am trying to work out overtime on a timesheet but based on minimum hours worked
 
Upvote 0
Sadly a formula cannot "guess" it has already dealt once with the same date ...

If you do carry Duplicates ... is there a valid for you not to get rid of them ???
 
Upvote 0
Not really as the user may enter different lines per day entry

I'll have to think of a way around the issue, but thanks
 
Upvote 0
Understand the User might enter several times the same info ...

But does it prevent you from cleaning his input ???
 
Upvote 0

Forum statistics

Threads
1,215,183
Messages
6,123,529
Members
449,105
Latest member
syed902

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