You are here:

Excel/Urgent : regarding the formulae

Advertisement


Question
I have a problem that suppose
     A
The great is 375 ml
The great is  750 ml
The great is  375 ml
The great is 990 ml

if above is column A in excel sheet... I have to search in this column A for the 375 ml or 750 ml. If there is 375 ml then I have to insert a value of 0.5 in corresponding column B and if it is 750 , I have to insert the value as 1 . If it is not able to find any reqd i.e not 375 ml,750 ml ,then I have to get a 0 on the column B. Please reply soon in a correct manner
Thanks and regards
Saurabh


Answer
If I understand the question correctly, the cell will contain text which MIGHT contain one of the values you want to search for - if this is a correct understanding, then this formula will do it - this example assumes the value you are checking is in A1


=IF(NOT(ISERROR(SEARCH("375",A1))),0.5,IF(NOT(ISERROR(SEARCH("750",A1))),1,0))
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

All Answers

Answers by Expert:


Ask Experts

Volunteer


Aidan Heritage

Expertise

I have provided first hand support since `95 for Microsoft Office majoring in Word and Excel - support for all versions from 2 onwards

Experience

My background is in the insurance industry and call centre areas, but have been called upon to provide many varied solutions.

Education/Credentials
I'm educated to UK A level standard, but as I left school some 30 years ago that is rather irrelevent - university of life has provided more of a background!

©2009 About.com, a part of The New York Times Company. All rights reserved.