View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sparky13 Sparky13 is offline
external usenet poster
 
Posts: 24
Default Function to calculate based on a portions of a number

Gentlemen: Thank you for your assistance. Youe suggestion did help me create
a workaround formula (see below FYI). It is a bit larger than I was hoping
for but it does work. Now I just need to work out the negitive number aspects.
Thanks again

=IF(BL22=1,BL23,IF(BL22=2,BL23/2,IF(BL22=3,BL23/3,IF(AND(BL223,(BL22-INT((BL22/3))*3)=1),BL23,IF(AND(BL223,(BL22-INT((BL22/3))*3)=2),BL23/2,0))+BB38)))

"Sparky13" wrote:

How would I write a formula to produce various results in differant cells
based on a portion of a number in another cell. Excel 2003

Cell A contains a variable number.
Cell B also containes a variable number.
I need to calculate:
Cell C results need to be based on 1/3rd of Cell A x Cell B, if Cell A is
evenly divided by 3. This part is not a problem (B/(A/3). If Cell A can't be
evenly divided than: Cell A results need to be (B/(A/3) + 100% of cell B if
the remainder is "1" or 50% of Cell B if the remainder is "2" .

Than comes Cell D: This result needs to be (B/(A/3) + 0% if remainder is "1"
and 50% of cell B if remained is "2"

Than comes cell C: This result needs to be (B/(A/3) only on the hole number
result of A/3.