Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
If function?
Newbie question...I'm looking for the formula that will report the value that
I want in column B. I guess wildcards must nbe used. I tried =IF (A1 = "*Catalog*", "Catalog", IF(A1 = "*Stock*", "Stock")) A B Stock - Rock Stock Catalog - Indie Catalog Catalog - Rock Catalog Stock - Indie Stock Thanks for your help. Paul |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
If function?
Try
=IF(COUNTIF(A1,"*stock*"),"stock","no stock") "Paul" wrote in message ... Newbie question...I'm looking for the formula that will report the value that I want in column B. I guess wildcards must nbe used. I tried =IF (A1 = "*Catalog*", "Catalog", IF(A1 = "*Stock*", "Stock")) A B Stock - Rock Stock Catalog - Indie Catalog Catalog - Rock Catalog Stock - Indie Stock Thanks for your help. Paul |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
If function?
=if(countif(A1,"*Catalog*"),"Catalog",if(countif(A 1,"*Stock*"),"Stock","not
found")) -- Regards, Tom Ogilvy "Paul" wrote in message ... Newbie question...I'm looking for the formula that will report the value that I want in column B. I guess wildcards must nbe used. I tried =IF (A1 = "*Catalog*", "Catalog", IF(A1 = "*Stock*", "Stock")) A B Stock - Rock Stock Catalog - Indie Catalog Catalog - Rock Catalog Stock - Indie Stock Thanks for your help. Paul |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
If function?
Thanks chips, but what happens with my other variable?
"Chip Pearson" wrote: Try =IF(COUNTIF(A1,"*stock*"),"stock","no stock") "Paul" wrote in message ... Newbie question...I'm looking for the formula that will report the value that I want in column B. I guess wildcards must nbe used. I tried =IF (A1 = "*Catalog*", "Catalog", IF(A1 = "*Stock*", "Stock")) A B Stock - Rock Stock Catalog - Indie Catalog Catalog - Rock Catalog Stock - Indie Stock Thanks for your help. Paul |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
If function?
If you want to extract the leftmost part, before the dash, you might
try these two functions. in B1: =SEARCH(" - ", A1) That puts a 6 in B1, which is the position of the dash. in C1: =LEFT(A1, B1) That puts "Stock" in C1, which is the leftmost portion of A1 until the dash. (When you're happy with the first line, you should copy these to the second and subsequent lines with the Fill Down command.) You may also combine these into one nested function: =LEFT(A1, SEARCH(" - ", A1)) The way you can find these nifty functions is clicking on the "fx" probably above the "B" column header. You can enter a description of what you're looking for or just pick the Text category. |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
If function?
=IF(COUNTIF(A1,"*stock*"),"stock",IF("COUNTIF(A1," *catalog*"),"Catalog","Nei
ther")) -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "Paul" wrote in message ... Thanks chips, but what happens with my other variable? "Chip Pearson" wrote: Try =IF(COUNTIF(A1,"*stock*"),"stock","no stock") "Paul" wrote in message ... Newbie question...I'm looking for the formula that will report the value that I want in column B. I guess wildcards must nbe used. I tried =IF (A1 = "*Catalog*", "Catalog", IF(A1 = "*Stock*", "Stock")) A B Stock - Rock Stock Catalog - Indie Catalog Catalog - Rock Catalog Stock - Indie Stock Thanks for your help. Paul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
Adding a custom function to the default excel function list | Excel Programming | |||
User-Defined Function pre-empting Built-in Function? How to undo???? | Excel Programming |