Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default IF Statment more than 7 stacked ?

Hi I am trying to completed this statment up to "Z"
Whats the best way to do this ?
Excel 2003

=IF(E14="A",F14+(F14*$B$2),IF(E14="B",F14+(F14*$B$ 3),IF(E14="C",F14+(F14*$B$4),IF(E14="D",F14+(F14*$ B$5),IF(E14="E",F14+(F14*$B$6),IF(E14="F",F14+(F14 *$B$7),IF(E14="G",F14+(F14*$B$8),IF(E14="H",F14+(F 14*$B$9)))))))))

As you can see im stuck at "H"
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default IF Statment more than 7 stacked ?

Hi,
Insert a column just beside column B and enter a list of all your letters
starting in C2 then in the cell where you want the formula enter

=sumproduct(--(e14=$c$2:$c$28),($F$14+($F$14*B2:B28)))

If this was helpful please click yes, thanks
"keeny" wrote:

Hi I am trying to completed this statment up to "Z"
Whats the best way to do this ?
Excel 2003

=IF(E14="A",F14+(F14*$B$2),IF(E14="B",F14+(F14*$B$ 3),IF(E14="C",F14+(F14*$B$4),IF(E14="D",F14+(F14*$ B$5),IF(E14="E",F14+(F14*$B$6),IF(E14="F",F14+(F14 *$B$7),IF(E14="G",F14+(F14*$B$8),IF(E14="H",F14+(F 14*$B$9)))))))))

As you can see im stuck at "H"

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default IF Statment more than 7 stacked ?

=IF(OR(CODE(E14)<CODE("A"),CODE(E14)CODE("Z")),"r esult
undefined",F14*(1+OFFSET($B$2,CODE(E14)-CODE("A"),0)))
--
David Biddulph

"keeny" wrote in message
...
Hi I am trying to completed this statment up to "Z"
Whats the best way to do this ?
Excel 2003

=IF(E14="A",F14+(F14*$B$2),IF(E14="B",F14+(F14*$B$ 3),IF(E14="C",F14+(F14*$B$4),IF(E14="D",F14+(F14*$ B$5),IF(E14="E",F14+(F14*$B$6),IF(E14="F",F14+(F14 *$B$7),IF(E14="G",F14+(F14*$B$8),IF(E14="H",F14+(F 14*$B$9)))))))))

As you can see im stuck at "H"



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default IF Statment more than 7 stacked ?

No IF's are needed:

=F14+F14*INDIRECT("B" & (CODE(E14)-63))

--
Gary''s Student - gsnu200853


"keeny" wrote:

Hi I am trying to completed this statment up to "Z"
Whats the best way to do this ?
Excel 2003

=IF(E14="A",F14+(F14*$B$2),IF(E14="B",F14+(F14*$B$ 3),IF(E14="C",F14+(F14*$B$4),IF(E14="D",F14+(F14*$ B$5),IF(E14="E",F14+(F14*$B$6),IF(E14="F",F14+(F14 *$B$7),IF(E14="G",F14+(F14*$B$8),IF(E14="H",F14+(F 14*$B$9)))))))))

As you can see im stuck at "H"

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default IF Statment more than 7 stacked ?

.... or =IF(OR(CODE(UPPER(E14))<CODE("A"),CODE(UPPER(E14)) CODE("Z")),"result
undefined",F14*(1+OFFSET($B$2,CODE(UPPER(E14))-CODE("A"),0))) if you want to
allow for lower-case inputs.
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
=IF(OR(CODE(E14)<CODE("A"),CODE(E14)CODE("Z")),"r esult
undefined",F14*(1+OFFSET($B$2,CODE(E14)-CODE("A"),0)))
--
David Biddulph

"keeny" wrote in message
...
Hi I am trying to completed this statment up to "Z"
Whats the best way to do this ?
Excel 2003

=IF(E14="A",F14+(F14*$B$2),IF(E14="B",F14+(F14*$B$ 3),IF(E14="C",F14+(F14*$B$4),IF(E14="D",F14+(F14*$ B$5),IF(E14="E",F14+(F14*$B$6),IF(E14="F",F14+(F14 *$B$7),IF(E14="G",F14+(F14*$B$8),IF(E14="H",F14+(F 14*$B$9)))))))))

As you can see im stuck at "H"





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


Similar Threads
Thread Thread Starter Forum Replies Last Post
If statment help Joe Wildman[_2_] Excel Worksheet Functions 3 February 16th 09 07:16 PM
Can I get multiple stacked bars per entry on a stacked bar chart? Cheezeman Excel Discussion (Misc queries) 3 January 28th 09 08:42 AM
?make a combo chart with 1 stacked bar and 1 not stacked, + show t y Charts and Charting in Excel 3 March 17th 08 08:22 PM
To create a stacked column chart and group the stacked bars togeth Jacqueline Charts and Charting in Excel 1 February 17th 05 11:05 PM
How can I create a stacked bar chart with stacked bars side by TimMC Charts and Charting in Excel 1 January 22nd 05 02:09 AM


All times are GMT +1. The time now is 11:45 PM.

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"