Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
vgolfman
 
Posts: n/a
Default IF and ISODD Formula Help

First time posting a question...

B1 = input
B2 = input
Formula that is returning a #NAME? error is:
=IF(B1<5,B1*12,IF(ISODD(B1),(((B1-4-1)/2)+4)*12,(((B1-4)/2)+4)*12))

This formula works fine if B1<5, its when that first IF is false where the
problem arises.

The result I expect would be is, if B1 = 21 and B2 =12, I expect the formula
to return a value of 144. Any help/suggestions would be appreciated.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

You need to install Analysis ToolPak, ISODD is part of ATP,
keep the office/excel cd handy, click toolsadd-inns, select
Analysis ToolPak and follow the instructions
If you don't have access to a CD use IF(MOD(B1,2)=1 instead of IF(ISODD(B1)


Regards,

Peo Sjoblom


"vgolfman" wrote:

First time posting a question...

B1 = input
B2 = input
Formula that is returning a #NAME? error is:
=IF(B1<5,B1*12,IF(ISODD(B1),(((B1-4-1)/2)+4)*12,(((B1-4)/2)+4)*12))

This formula works fine if B1<5, its when that first IF is false where the
problem arises.

The result I expect would be is, if B1 = 21 and B2 =12, I expect the formula
to return a value of 144. Any help/suggestions would be appreciated.

  #3   Report Post  
vgolfman
 
Posts: n/a
Default

Peo,
That fixed it!!! Thanks!

"Peo Sjoblom" wrote:

You need to install Analysis ToolPak, ISODD is part of ATP,
keep the office/excel cd handy, click toolsadd-inns, select
Analysis ToolPak and follow the instructions
If you don't have access to a CD use IF(MOD(B1,2)=1 instead of IF(ISODD(B1)


Regards,

Peo Sjoblom


"vgolfman" wrote:

First time posting a question...

B1 = input
B2 = input
Formula that is returning a #NAME? error is:
=IF(B1<5,B1*12,IF(ISODD(B1),(((B1-4-1)/2)+4)*12,(((B1-4)/2)+4)*12))

This formula works fine if B1<5, its when that first IF is false where the
problem arises.

The result I expect would be is, if B1 = 21 and B2 =12, I expect the formula
to return a value of 144. Any help/suggestions would be appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"