Formula help

ExcelRoy

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

I am having some trouble with the following formula

=IF(B12="","",SUMIFS($T$12:$T$21,$S$12:$S$21,B12)

This works great if there are single entries within $S$12:$S$21, but if there are 2 entries then it returns the desired SUMIF twice (on each entry)

Can the formula be changed to return the first entry found within $S$12:$S$21

WORKEDBASICOVERTIME
Monday7.57.50
Tuesday7.57.50
Wednesday8.57.51
Thursday7.57.50
Friday770
Saturday404
Tuesday7.57.50

Thanks
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Can you re-post the data using a mini-sheet as that shows us the columns. Also what are your current & expected results?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hi Fluff,

Think i may have a work around now but thanks for the reply

All the best
 
Upvote 0
Hi Fluff,

Unfortunately work around didnt work as i had hoped

Maybe this would would be a better way to explain

=IF(G12="","",TEXT(G12,"dddddddd")) reads dates in G12:G21 and returns "Monday", "Tuesday", "Wednesday" from the date

My issue will be if the same date is entered into G12:G21 (ie twice or three times) the formula would return for example "Monday", "Monday", Monday"

So i need the formula to return the first instance found within G12:G21 only

Thanks
 
Upvote 0
What exactly is in cells G12:G21?
Is it text, or dates?
If you change the cell format of the range G12:G21 to "General", what values does it show?
 
Upvote 0
if the same date is entered into G12:G21 (ie twice or three times) the formula would return for example "Monday", "Monday", Monday"
What formula, the one you originally posted would not return that.
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,289
Members
449,149
Latest member
mwdbActuary

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