View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Steve Steve is offline
external usenet poster
 
Posts: 1,814
Default Help with formula...

I have two tables with many rows and columns. I want to set up a third table
that will calculate either the numerical inc(dec) in each cell or the pct
inc(dec). The user can toggle between numbers and percents based on what
he/she puts in an input cell.

The formula is easy: (if inp="percent", (c5-b5)/b5, c5-b5). Can I set the
format in that formula? I want to format as numbers, no decimal places,
comma separating thousands for numbers and percent with 2 decimals for
percents.

Ideas?