Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Stadinx
 
Posts: n/a
Default Function needed please

hI
I am a beginner in excel and trying to work out a formula / function which
help me work easier and quicker. I will get straight into it.

If cell A1 = Lettuce and A2 = Orange and A3= Carrot, how do I make columns
B1 and B3 categroise these as vegetables by using a function?

I hope this makes sense
Thanks
Stadinx
  #2   Report Post  
Rowan
 
Posts: n/a
Default

If you are only going to have Lettuce, Orange or Carrot then you can enter a
formula like this into cell B1 and copy it down:
=IF(A1="Orange","Fruit","Vegetable")

In the more likely case where your list contains more than just these three
you should have a lookup list and use the vlookup function. The lookup list
can be on the same sheet, a different sheet or even a different workbook. It
will hold a list of all Options and their categories. So my lookup list is on
Sheet2 with the Options in Column A and the categories in Column B something
like this:

Orange Fruit
Lettuce Vegetable
Carrot Vegetable
Pear Fruit

Back on sheet1 in Cell B1 I can then add the formula
=VLOOKUP(A1,Sheet2!$A$1:$B$3,2,0)
and copy it down.
See help on vlookup for more information.

Hope this helps
Rowan

"Stadinx" wrote:

hI
I am a beginner in excel and trying to work out a formula / function which
help me work easier and quicker. I will get straight into it.

If cell A1 = Lettuce and A2 = Orange and A3= Carrot, how do I make columns
B1 and B3 categroise these as vegetables by using a function?

I hope this makes sense
Thanks
Stadinx

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
Day of week function needed Metolius Dad Excel Worksheet Functions 5 April 11th 05 05:39 PM
Help needed with IF function Ed Excel Worksheet Functions 1 March 23rd 05 04:26 PM
function needed David Harrison Excel Worksheet Functions 1 February 23rd 05 11:28 PM
IF function help needed jmcclain Excel Worksheet Functions 2 February 23rd 05 04:33 PM
Urgent help needed: IF function Terence Excel Worksheet Functions 3 November 16th 04 02:29 AM


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