ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel IF statement (https://www.excelbanter.com/excel-discussion-misc-queries/167153-excel-if-statement.html)

sby

Excel IF statement
 
Hi

I am struggling with an IF Statement in Excel. I want to have a sheet which
says if it is mon -thurs add these totals and if it is Friday add these
totals together.

Does anyone know a way around this

Thanks

SBY

Mike H

Excel IF statement
 
Maybe

=IF(WEEKDAY(TODAY(),2)<=4,A1+A2,IF(WEEKDAY(TODAY() ,2)=5,B1+B2,"It's the
weekend!"))

Mike

"sby" wrote:

Hi

I am struggling with an IF Statement in Excel. I want to have a sheet which
says if it is mon -thurs add these totals and if it is Friday add these
totals together.

Does anyone know a way around this

Thanks

SBY


Don Guillett

Excel IF statement
 
for Friday you can use SUMIF

for mon-thur use if dates in col E and values in col F
=SUMPRODUCT((WEEKDAY(E2:E22)=2)*(WEEKDAY(E2:E22)< =5)*F2:F22)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"sby" wrote in message
...
Hi

I am struggling with an IF Statement in Excel. I want to have a sheet
which
says if it is mon -thurs add these totals and if it is Friday add these
totals together.

Does anyone know a way around this

Thanks

SBY




All times are GMT +1. The time now is 11:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com