Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula based on text value..

Hi-

I am trying to create a formula that is based on a text value. Pseudo code
is as follows:

If cell value for B3 is equal to "S&P" then cell value for B5 is equal to
B4*10

else if

the cell value for B3 is equal to "DOW" then cell value for B5 is equal to
B4/.25*12.50.

else if cell value is equal to "Nas100"......

Essentially, I am looking for something simlar to a switch statement in the
form of an excel formula. I am new to excel. What I have so far is:

=IF(OR(B3={"S&P","DOW","Nas100","Gold","Silver"}), ???, ???)

Thank you for your help in advance!

Nick
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Formula based on text value..

Here's a sample formula for B5..........you can build on it up to 7 IF's

=IF(B3="S&P",B4*10,IF(B3="DOW",B4/.25*12.50,IF(B3="NAS100","ANOTHERFORMULA","")))


..........All on one line, watch out for word-wrap if copying.....

hth
Vaya con Dios,
Chuck, CABGx3


"Winters Courtesy" wrote:

Hi-

I am trying to create a formula that is based on a text value. Pseudo code
is as follows:

If cell value for B3 is equal to "S&P" then cell value for B5 is equal to
B4*10

else if

the cell value for B3 is equal to "DOW" then cell value for B5 is equal to
B4/.25*12.50.

else if cell value is equal to "Nas100"......

Essentially, I am looking for something simlar to a switch statement in the
form of an excel formula. I am new to excel. What I have so far is:

=IF(OR(B3={"S&P","DOW","Nas100","Gold","Silver"}), ???, ???)

Thank you for your help in advance!

Nick

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula based on text value..

That worked flawlessly!! Thank you Chuck for such a fast response.

"CLR" wrote:

Here's a sample formula for B5..........you can build on it up to 7 IF's

=IF(B3="S&P",B4*10,IF(B3="DOW",B4/.25*12.50,IF(B3="NAS100","ANOTHERFORMULA","")))


.........All on one line, watch out for word-wrap if copying.....

hth
Vaya con Dios,
Chuck, CABGx3


"Winters Courtesy" wrote:

Hi-

I am trying to create a formula that is based on a text value. Pseudo code
is as follows:

If cell value for B3 is equal to "S&P" then cell value for B5 is equal to
B4*10

else if

the cell value for B3 is equal to "DOW" then cell value for B5 is equal to
B4/.25*12.50.

else if cell value is equal to "Nas100"......

Essentially, I am looking for something simlar to a switch statement in the
form of an excel formula. I am new to excel. What I have so far is:

=IF(OR(B3={"S&P","DOW","Nas100","Gold","Silver"}), ???, ???)

Thank you for your help in advance!

Nick

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Formula based on text value..

Happy to help..........thanks for the feedback.

BTW, if your conditions exceed 7, you can move up to the VLOOKUP formula.


Vaya con Dios,
Chuck, CABGx3




"Winters Courtesy" wrote:

That worked flawlessly!! Thank you Chuck for such a fast response.

"CLR" wrote:

Here's a sample formula for B5..........you can build on it up to 7 IF's

=IF(B3="S&P",B4*10,IF(B3="DOW",B4/.25*12.50,IF(B3="NAS100","ANOTHERFORMULA","")))


.........All on one line, watch out for word-wrap if copying.....

hth
Vaya con Dios,
Chuck, CABGx3


"Winters Courtesy" wrote:

Hi-

I am trying to create a formula that is based on a text value. Pseudo code
is as follows:

If cell value for B3 is equal to "S&P" then cell value for B5 is equal to
B4*10

else if

the cell value for B3 is equal to "DOW" then cell value for B5 is equal to
B4/.25*12.50.

else if cell value is equal to "Nas100"......

Essentially, I am looking for something simlar to a switch statement in the
form of an excel formula. I am new to excel. What I have so far is:

=IF(OR(B3={"S&P","DOW","Nas100","Gold","Silver"}), ???, ???)

Thank you for your help in advance!

Nick

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
Create formula that will pull a value based on text in diff cell? So Tru Geo Excel Discussion (Misc queries) 0 June 22nd 06 08:16 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
can i create formula giving totals based on financial & text info Dc Excel Discussion (Misc queries) 0 September 14th 05 05:29 PM
formula based on text information Kathryn W Excel Worksheet Functions 2 September 5th 05 12:12 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 05:25 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"