LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by cphgeo View Post
hi,
i have a spreadsheet with a description column containing multiple text entries (a short description of minerals).
i would like to extract and code the text into a new column.
an example of the data is

Description
ZnS, Zn2SiO4

i would like the function to then populate the new column with
ZM, ZBM

i have tried some IF functions but nothing happens!
here is one i tried
=if(H20="ZnS", ["ZM"])

when i enter this in the new code column it just enters that text in the cell!
what should the new column be formatted for )text, number etc) and is the formula correct?

thanks
nigel
Hi Nigel,

Your formula is looking in H20 for just "ZnS" and so doesn't fire the TRUE condition of the IF formula if the cell contains "ZnS, Zn2SiO4". It doesn't matter how you format the new column it will always fire the FALSE condition of your formula if the text doesn't match exactly.

Could you give a sample of several rows of data and explain any given pattern to the "Descriptions"??? i.e. they always start with 3 characters and a comma and those are the only ones you're interested in...
 
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
VB coding ndn14 Excel Programming 1 May 3rd 07 01:00 AM
coding maisy1 Excel Discussion (Misc queries) 1 August 6th 06 08:58 PM
"=ROW()-1" type of coding doesn't appear in a filter / is there coding that does? StargateFan[_3_] Excel Programming 10 October 6th 05 01:18 PM
Implant macro coding into ASP coding Sam yong Excel Programming 5 September 15th 05 10:37 AM
VBA Coding (?) Larry G. Excel Programming 1 May 18th 05 05:48 PM


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