Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
I'm badly in need of some help with an excel formula. Essentially I need to check to see if the value of C7 is "Y" and if so for the formula then to look at D7 through to J7 and look for a value of "Yes". the total amount of "Yes" boxes should then be multiplied by J5 and the result shown in L7. It is for the purpose of a timesheet, I'm trying to calculate fuel allowances The Value C7 "Y" indicates that i drove and the values D7 through to J7 are days of the week Monday to Sunday, For each day i drove somewhere I enter "Yes" the amount i'm allowed for my fuel allowance is displayed in J5 so you can see that i need to multiply the days of the week that i drove by the allowance. I hope this is explained well enough! Any help you might be able to give would be greatly appreciated! Thanks, Bill |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Enter this formula in L7:
=IF(C7="Y",COUNTIF(D7:J7,"Yes")*J$5,0) I think this is what you want. Hope this helps. Pete BillOSull wrote: Hello, I'm badly in need of some help with an excel formula. Essentially I need to check to see if the value of C7 is "Y" and if so for the formula then to look at D7 through to J7 and look for a value of "Yes". the total amount of "Yes" boxes should then be multiplied by J5 and the result shown in L7. It is for the purpose of a timesheet, I'm trying to calculate fuel allowances The Value C7 "Y" indicates that i drove and the values D7 through to J7 are days of the week Monday to Sunday, For each day i drove somewhere I enter "Yes" the amount i'm allowed for my fuel allowance is displayed in J5 so you can see that i need to multiply the days of the week that i drove by the allowance. I hope this is explained well enough! Any help you might be able to give would be greatly appreciated! Thanks, Bill |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Pete,
Thank you very much, this worked a treat! I really appreciate the quick response also. Thanks again! Bill Pete_UK wrote: Enter this formula in L7: =IF(C7="Y",COUNTIF(D7:J7,"Yes")*J$5,0) I think this is what you want. Hope this helps. Pete BillOSull wrote: Hello, I'm badly in need of some help with an excel formula. Essentially I need to check to see if the value of C7 is "Y" and if so for the formula then to look at D7 through to J7 and look for a value of "Yes". the total amount of "Yes" boxes should then be multiplied by J5 and the result shown in L7. It is for the purpose of a timesheet, I'm trying to calculate fuel allowances The Value C7 "Y" indicates that i drove and the values D7 through to J7 are days of the week Monday to Sunday, For each day i drove somewhere I enter "Yes" the amount i'm allowed for my fuel allowance is displayed in J5 so you can see that i need to multiply the days of the week that i drove by the allowance. I hope this is explained well enough! Any help you might be able to give would be greatly appreciated! Thanks, Bill |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks for the feedback, Bill - glad to be of help. I just happened to
be browsing when your post came through. Pete BillOSull wrote: Pete, Thank you very much, this worked a treat! I really appreciate the quick response also. Thanks again! Bill Pete_UK wrote: Enter this formula in L7: =IF(C7="Y",COUNTIF(D7:J7,"Yes")*J$5,0) I think this is what you want. Hope this helps. Pete BillOSull wrote: Hello, I'm badly in need of some help with an excel formula. Essentially I need to check to see if the value of C7 is "Y" and if so for the formula then to look at D7 through to J7 and look for a value of "Yes". the total amount of "Yes" boxes should then be multiplied by J5 and the result shown in L7. It is for the purpose of a timesheet, I'm trying to calculate fuel allowances The Value C7 "Y" indicates that i drove and the values D7 through to J7 are days of the week Monday to Sunday, For each day i drove somewhere I enter "Yes" the amount i'm allowed for my fuel allowance is displayed in J5 so you can see that i need to multiply the days of the week that i drove by the allowance. I hope this is explained well enough! Any help you might be able to give would be greatly appreciated! Thanks, Bill |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Bill, if I understand correctly what you are loking for try:
=if(c7="Yes",(contif(d7:j7,"Yes")*j5),0) hth -- regards from Brazil Thanks in advance for your feedback. Marcelo "BillOSull" escreveu: Hello, I'm badly in need of some help with an excel formula. Essentially I need to check to see if the value of C7 is "Y" and if so for the formula then to look at D7 through to J7 and look for a value of "Yes". the total amount of "Yes" boxes should then be multiplied by J5 and the result shown in L7. It is for the purpose of a timesheet, I'm trying to calculate fuel allowances The Value C7 "Y" indicates that i drove and the values D7 through to J7 are days of the week Monday to Sunday, For each day i drove somewhere I enter "Yes" the amount i'm allowed for my fuel allowance is displayed in J5 so you can see that i need to multiply the days of the week that i drove by the allowance. I hope this is explained well enough! Any help you might be able to give would be greatly appreciated! Thanks, Bill |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(C7="Y",COUNTIF(D7:J7="Yes")*J7,"")
-- Brevity is the soul of wit. "BillOSull" wrote: Hello, I'm badly in need of some help with an excel formula. Essentially I need to check to see if the value of C7 is "Y" and if so for the formula then to look at D7 through to J7 and look for a value of "Yes". the total amount of "Yes" boxes should then be multiplied by J5 and the result shown in L7. It is for the purpose of a timesheet, I'm trying to calculate fuel allowances The Value C7 "Y" indicates that i drove and the values D7 through to J7 are days of the week Monday to Sunday, For each day i drove somewhere I enter "Yes" the amount i'm allowed for my fuel allowance is displayed in J5 so you can see that i need to multiply the days of the week that i drove by the allowance. I hope this is explained well enough! Any help you might be able to give would be greatly appreciated! Thanks, Bill |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reusing formula | Excel Discussion (Misc queries) | |||
2 Nesting questions | Excel Worksheet Functions | |||
Match then lookup | Excel Worksheet Functions | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions |