Excel/Urgent : regarding the formulae
Expert: Aidan Heritage - 9/12/2008
QuestionI 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
AnswerIf 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