Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Need Formula Help....

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pinger - 06 Mar 2008 03:18 GMT
Hi:

Is there a formula string for something like this.....?:     I want a number
in a cell when a specific word is typed in another cell, for example, if I
wanted the number 50 to appear in C2 if I type the word, say, Airplane, in
cell C1?  Thanks, pinger
T. Valko - 06 Mar 2008 03:29 GMT
You need to define what you want when cell C1 does not contain the word
airplane.

Enter this formula in C2:

=IF(C1="airplane",50,"")

If C1 does not contain airplane the formula will leave the cell blank.

Signature

Biff
Microsoft Excel MVP

> Hi:
>
> Is there a formula string for something like this.....?:     I want a
> number in a cell when a specific word is typed in another cell, for
> example, if I wanted the number 50 to appear in C2 if I type the word,
> say, Airplane, in cell C1?  Thanks, pinger
pinger - 06 Mar 2008 03:47 GMT
Thanks for the reply...let me be more specific.  Suppose I have columns A
and B.  I Type words in A and need a specific number to show up in the same
row in B.  For example,  whenever I type "airplane" in column A, I need "50"
to appear in B on the same row; whenever I type "Bus" in A, I need "55" to
appear; whenever I type "Train" in A, I need "60" to appear in B.....always
on the same row.  Doable?
Thanks, pinger

> You need to define what you want when cell C1 does not contain the word
> airplane.
[quoted text clipped - 11 lines]
>> example, if I wanted the number 50 to appear in C2 if I type the word,
>> say, Airplane, in cell C1?  Thanks, pinger
T. Valko - 06 Mar 2008 04:19 GMT
"airplane" in column A, I need "50"
"Bus" in A, I need "55"
"Train" in A, I need "60"

That's 3 conditions. *Exactly* how many conditions do you have? The number
of conditions will determine what the best solution is.

Signature

Biff
Microsoft Excel MVP

> Thanks for the reply...let me be more specific.  Suppose I have columns A
> and B.  I Type words in A and need a specific number to show up in the
[quoted text clipped - 19 lines]
>>> example, if I wanted the number 50 to appear in C2 if I type the word,
>>> say, Airplane, in cell C1?  Thanks, pinger
Bruno Campanini - 06 Mar 2008 08:22 GMT
> Thanks for the reply...let me be more specific.  Suppose I have columns A
> and B.  I Type words in A and need a specific number to show up in the
[quoted text clipped - 3 lines]
> in B.....always on the same row.  Doable?
> Thanks, pinger

=SUM(IF(A1={"Airplane","Bus","Train"},{50,55,60}))

Bruno
stew - 06 Mar 2008 09:09 GMT
> =SUM(IF(A1={"Airplane","Bus","Train"},{50,55,60}))
>
> Bruno

Another solution would be:

=LOOKUP(A1,{"Airplane","Bus","Train"},{50,55,60})

Stewart
pinger - 06 Mar 2008 14:53 GMT
Biff:

Thank you for your reply.  I don't think what I'm trying to do is possible
in Excel, but let me tell you what I'm attempting:
I am trying to set up a spread sheet where my heath class students can
record the foods they eat on a daily basis and have the caloric value of the
foods show up in an adjacent cell whenever they type the name of a food in a
predetermined column. I would need to assign caloric values to each food ( I
suspect there would be between one and two hundred different items) ahead of
time.  For example, Apple=85, Slice of Bread=100, Banana=90, etc. etc.  So
if "Banana" was typed in A1, the number 90 would populate B1.  I would then
roll up the numbers by day, week, etc. (which I know how to do) I'm simply
trying to do this so the Food and the Caloric value do not need to BOTH be
entered...to avoid errors thus making our project less valid.

Thanks, pinger

> Thanks for the reply...let me be more specific.  Suppose I have columns A
> and B.  I Type words in A and need a specific number to show up in the
[quoted text clipped - 19 lines]
>>> example, if I wanted the number 50 to appear in C2 if I type the word,
>>> say, Airplane, in cell C1?  Thanks, pinger
Roger Govier - 06 Mar 2008 16:31 GMT
Hi

Set up all of your Foods on Sheet2 in column A, with their Calorific value
alongside in Column B
On Sheet1 in cell B1
=IF(A1="","",VLOOKUP(A1,Sheet2!$A:$B,2,0))
Copy down Sheet1 column B as far as required

Signature

Regards
Roger Govier

> Biff:
>
[quoted text clipped - 37 lines]
>>>> example, if I wanted the number 50 to appear in C2 if I type the word,
>>>> say, Airplane, in cell C1?  Thanks, pinger
T. Valko - 06 Mar 2008 18:13 GMT
Also see this:

http://contextures.com/xlFunctions02.html

Signature

Biff
Microsoft Excel MVP

> Hi
>
[quoted text clipped - 45 lines]
>>>>> example, if I wanted the number 50 to appear in C2 if I type the word,
>>>>> say, Airplane, in cell C1?  Thanks, pinger
pinger - 07 Mar 2008 23:30 GMT
Roger:

Perfect, Thank you very much!   Also thanks to Biff, Bruno and Stew.

pinger
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
> Hi
>
[quoted text clipped - 45 lines]
>>>>> example, if I wanted the number 50 to appear in C2 if I type the word,
>>>>> say, Airplane, in cell C1?  Thanks, pinger

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.