Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a function
=IF(OR(B9,B10,B11,B12)0,"PBR","PBO") B9:B12 are numerical values and the cell format is number. If all the cells are blank the result is #VALUE! If one of the cells has a number then the formula evaluates correctly and displays text PBR If I remove the OR part from the equation and just use one cell (e.g. B9 = blank) =IF(B90,"PBR","PBO") then the result is PBO Why doesn't it work with the OR and blank cells? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() ivory_kitten wrote: I have a function =IF(OR(B9,B10,B11,B12)0,"PBR","PBO") B9:B12 are numerical values and the cell format is number. If all the cells are blank the result is #VALUE! If one of the cells has a number then the formula evaluates correctly and displays text PBR If I remove the OR part from the equation and just use one cell (e.g. B9 = blank) =IF(B90,"PBR","PBO") then the result is PBO Why doesn't it work with the OR and blank cells? Hi, It looks like your function will work if you move your parentheses a little on the OR expression: =IF(OR(B9,B10,B11,B120),"PBR","PBO") Regards, Bondi |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(OR(--B9,--B10,--B11,--B12,"PBR","PBO")
will return PBO if any of B2:B12 < 0 or BLANK HTH -- AP "ivory_kitten" a écrit dans le message de news: ... I have a function =IF(OR(B9,B10,B11,B12)0,"PBR","PBO") B9:B12 are numerical values and the cell format is number. If all the cells are blank the result is #VALUE! If one of the cells has a number then the formula evaluates correctly and displays text PBR If I remove the OR part from the equation and just use one cell (e.g. B9 = blank) =IF(B90,"PBR","PBO") then the result is PBO Why doesn't it work with the OR and blank cells? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() if all you want is the maximum value of b9:b120 =if(max(b9:b12)0,"PBR","PBO") Regards Dav -- Dav ------------------------------------------------------------------------ Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107 View this thread: http://www.excelforum.com/showthread...hreadid=561378 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks guys, I just needed if it is blank or zero.
"Dav" wrote: if all you want is the maximum value of b9:b120 =if(max(b9:b12)0,"PBR","PBO") Regards Dav -- Dav ------------------------------------------------------------------------ Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107 View this thread: http://www.excelforum.com/showthread...hreadid=561378 |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Assuming you won't have any negative values.... =IF(SUM(B9:B12),"PBR","PBO") -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=561378 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I get Excel to determine the line curve formula without graph. | Excel Discussion (Misc queries) | |||
User-defined functions created in Excel 2000 fail in Excel 2003 | Excel Discussion (Misc queries) | |||
Database functions should use criteria in formula, as 1-2-3 does | Excel Worksheet Functions | |||
Visible rows and functions that work | Excel Worksheet Functions | |||
# of Functions per cell | Excel Worksheet Functions |