Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want to calculate our daily goal based on the hours worked in a day. If we
are off that day, the goal is 0. My false value keeps coming up with the text instead of a number. =IF('2007 HRS'!B6="OFF",0,"=2007 HRS'!B6*'2007 HRS'!$E$44") |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That's because you put it inside quotes. Try it this way:
=IF('2007 HRS'!B6="OFF",0,'2007 HRS'!B6*'2007 HRS'!$E$44) Hope this helps. Pete On Aug 1, 1:50*am, MB HEG wrote: I want to calculate our daily goal based on the hours worked in a day. *If we are off that day, the goal is 0. *My false value keeps coming up with the text instead of a number. =IF('2007 HRS'!B6="OFF",0,"=2007 HRS'!B6*'2007 HRS'!$E$44") |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi
remove the double quotes. =IF(2007 HRS!B6="OFF",0,2007 HRS'!B6*2007 HRS!$E$44) regards FSt1 "MB HEG" wrote: I want to calculate our daily goal based on the hours worked in a day. If we are off that day, the goal is 0. My false value keeps coming up with the text instead of a number. =IF('2007 HRS'!B6="OFF",0,"=2007 HRS'!B6*'2007 HRS'!$E$44") |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you that works perfect. I tried taking the quotes out, but it kept
putting them back in. I just copied and pasted yours and it works great. "Pete_UK" wrote: That's because you put it inside quotes. Try it this way: =IF('2007 HRS'!B6="OFF",0,'2007 HRS'!B6*'2007 HRS'!$E$44) Hope this helps. Pete On Aug 1, 1:50 am, MB HEG wrote: I want to calculate our daily goal based on the hours worked in a day. If we are off that day, the goal is 0. My false value keeps coming up with the text instead of a number. =IF('2007 HRS'!B6="OFF",0,"=2007 HRS'!B6*'2007 HRS'!$E$44") |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If I want to also test the words "CE", "ML", "SICK" along with "off" how can
I add that to the formula "Pete_UK" wrote: That's because you put it inside quotes. Try it this way: =IF('2007 HRS'!B6="OFF",0,'2007 HRS'!B6*'2007 HRS'!$E$44) Hope this helps. Pete On Aug 1, 1:50 am, MB HEG wrote: I want to calculate our daily goal based on the hours worked in a day. If we are off that day, the goal is 0. My false value keeps coming up with the text instead of a number. =IF('2007 HRS'!B6="OFF",0,"=2007 HRS'!B6*'2007 HRS'!$E$44") |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi
just string the ifs togeather upto 7 for 2003 and lower IF(2007 HRS!B6="OFF","off",IF(2007 HRS!B6="Sick","Sick",IF(2007 HRS!B6="ce","ce",if(2007 HRS!B6="ml","ml",2007 HRS'!B6*2007 HRS!$E$44)))) regards FSt1 "MB HEG" wrote: If I want to also test the words "CE", "ML", "SICK" along with "off" how can I add that to the formula "Pete_UK" wrote: That's because you put it inside quotes. Try it this way: =IF('2007 HRS'!B6="OFF",0,'2007 HRS'!B6*'2007 HRS'!$E$44) Hope this helps. Pete On Aug 1, 1:50 am, MB HEG wrote: I want to calculate our daily goal based on the hours worked in a day. If we are off that day, the goal is 0. My false value keeps coming up with the text instead of a number. =IF('2007 HRS'!B6="OFF",0,"=2007 HRS'!B6*'2007 HRS'!$E$44") |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Another way, as responsed in your other post:
=IF(ISNUMBER(MATCH('2007 HRS'!B12,{"OFF";"CE";"ML";"VAC"},0)),0,'2007 HRS'!B12*'2007 HRS'!$E$44) Extend to suit -- Max Singapore http://savefile.com/projects/236895 Downloads:16,400 Files:356 Subscribers:53 xdemechanik --- "MB HEG" wrote: If I want to also test the words "CE", "ML", "SICK" along with "off" how can I add that to the formula |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Check your other post.
MB HEG wrote: If I want to also test the words "CE", "ML", "SICK" along with "off" how can I add that to the formula "Pete_UK" wrote: That's because you put it inside quotes. Try it this way: =IF('2007 HRS'!B6="OFF",0,'2007 HRS'!B6*'2007 HRS'!$E$44) Hope this helps. Pete On Aug 1, 1:50 am, MB HEG wrote: I want to calculate our daily goal based on the hours worked in a day. If we are off that day, the goal is 0. My false value keeps coming up with the text instead of a number. =IF('2007 HRS'!B6="OFF",0,"=2007 HRS'!B6*'2007 HRS'!$E$44") -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ISBLANK function not working when cell is blank dut to function re | Excel Discussion (Misc queries) | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions |