Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default How Can I.....

Ok, I have set up the cells in a column (H) to analyze the phrase in column
(G) and give a value. H2=IF(G2="PHRASE1",Val.1,IF(G2="PHRASE2",Val.2,0)) . Now
I have done this for eight individual phrases and values. What I want to know
is....

1) Is there a way for me to input a quantity of phrase and have H give me
the product? EX( 2,Phrase1= 2 x Val.1).

2) Is there a way to input multiple phrases and quantities?
(2,Phrase1,1,Phrase2 = 2 x Val.1 + 1 x Val.2)?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default How Can I.....

Hello,

You can use a nested if function and you can also use a combination of if+and
=IF(cond1,result1,IF(cond2,result2,IF(cond3,result 3,noresult)))
=IF(AND(A590,A5<95),resultok,resultfalse)

Hope this sill help, but do a google search for "IF FUNCTION IN EXCEL"

--
Herve Hanuise
http://www.affordsol.be


"markythesk8erboi" wrote:

Ok, I have set up the cells in a column (H) to analyze the phrase in column
(G) and give a value. H2=IF(G2="PHRASE1",Val.1,IF(G2="PHRASE2",Val.2,0)) . Now
I have done this for eight individual phrases and values. What I want to know
is....

1) Is there a way for me to input a quantity of phrase and have H give me
the product? EX( 2,Phrase1= 2 x Val.1).

2) Is there a way to input multiple phrases and quantities?
(2,Phrase1,1,Phrase2 = 2 x Val.1 + 1 x Val.2)?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default How Can I.....

Well, I have discovered how to use the VLOOKUP function and create a table
for it to reference. However, given that there are not only multiple phrases
each with there own value and quantities, but also the possibility of various
mixtures of phrases ie (2,PHRASE1,1,PHRASE2,3,PHRASE3,1,PHRASE4)=(2 x
Val.1)+(1 x Val.2)+ (3 x Val.3) + (1 x Val.4)

Given that the number of Phrases used at any given time and the fact that
the values for each are different AND the fact that the quantities for each
phrase are different I've decided to go another route with this prodject
using VB. Basically I'll just be inputing the info into a VB program I will
create and then have the program dump the info into a spreadsheet. Unless,
someone can solve this problem with Excel of course. Thank you for your
efforts on this matter.

"affordsol" wrote:

Hello,

You can use a nested if function and you can also use a combination of if+and
=IF(cond1,result1,IF(cond2,result2,IF(cond3,result 3,noresult)))
=IF(AND(A590,A5<95),resultok,resultfalse)

Hope this sill help, but do a google search for "IF FUNCTION IN EXCEL"

--
Herve Hanuise
http://www.affordsol.be


"markythesk8erboi" wrote:

Ok, I have set up the cells in a column (H) to analyze the phrase in column
(G) and give a value. H2=IF(G2="PHRASE1",Val.1,IF(G2="PHRASE2",Val.2,0)) . Now
I have done this for eight individual phrases and values. What I want to know
is....

1) Is there a way for me to input a quantity of phrase and have H give me
the product? EX( 2,Phrase1= 2 x Val.1).

2) Is there a way to input multiple phrases and quantities?
(2,Phrase1,1,Phrase2 = 2 x Val.1 + 1 x Val.2)?

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 10:14 PM.

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

About Us

"It's about Microsoft Excel"