Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
recipe conversion
in an IF formula, can I force recognition of case in a formula. I am trying
to set up a converversion table that needs to differentiate between upper- and lower case case "t" (teaspoons vs. Tablespoons), so I don't have to lengthen to tsp vs. Tbls.? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
recipe conversion
EXACT comes to mind ..
Assuming in A2 down are the textstrings: tsp, Tbls you could have something like this in B2, copied down: =IF(EXACT(LEFT(A2),"t"),"Lower case t",IF(EXACT(LEFT(A2),"T"),"Upper case T","")) -- Max Singapore http://savefile.com/projects/236895 Downloads:20,500 Files:363 Subscribers:64 xdemechanik --- "CRS" wrote: in an IF formula, can I force recognition of case in a formula. I am trying to set up a converversion table that needs to differentiate between upper- and lower case case "t" (teaspoons vs. Tablespoons), so I don't have to lengthen to tsp vs. Tbls.? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
recipe conversion
Max,
Here's what I have: Cols a1:d1 Ingredient | Quantity | Unit | Conversion; for conversion purposes i am converting all units to tsp ( 1 tsp = t, 1 Tblsp = 3t, 1 cup = 48 t). Amounts will be entered as "t" for tsp, "T" for Tblsp, "c" for cup. Here's how i modified my formula, based on your suggestion: =IF($A3="","",IF($C3="t",$B3,IF($C3="T",$B3*3,IF($ C3="c",$B3*48)))) It still returns same value whether "t" or "T". Would prefer not to have to designate input as "tsp" or "Tblsp", if possible. Ideas? Thanks for the input so far. I understand where you wereheading based on info i had provided. "Max" wrote: EXACT comes to mind .. Assuming in A2 down are the textstrings: tsp, Tbls you could have something like this in B2, copied down: =IF(EXACT(LEFT(A2),"t"),"Lower case t",IF(EXACT(LEFT(A2),"T"),"Upper case T","")) -- Max Singapore http://savefile.com/projects/236895 Downloads:20,500 Files:363 Subscribers:64 xdemechanik --- "CRS" wrote: in an IF formula, can I force recognition of case in a formula. I am trying to set up a converversion table that needs to differentiate between upper- and lower case case "t" (teaspoons vs. Tablespoons), so I don't have to lengthen to tsp vs. Tbls.? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
recipe conversion
OK. Syntax, parent error on my part. works well. Thanks for guidance.
Appreciated. "Max" wrote: EXACT comes to mind .. Assuming in A2 down are the textstrings: tsp, Tbls you could have something like this in B2, copied down: =IF(EXACT(LEFT(A2),"t"),"Lower case t",IF(EXACT(LEFT(A2),"T"),"Upper case T","")) -- Max Singapore http://savefile.com/projects/236895 Downloads:20,500 Files:363 Subscribers:64 xdemechanik --- "CRS" wrote: in an IF formula, can I force recognition of case in a formula. I am trying to set up a converversion table that needs to differentiate between upper- and lower case case "t" (teaspoons vs. Tablespoons), so I don't have to lengthen to tsp vs. Tbls.? |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
recipe conversion
Try:
=IF($A3="","",IF(EXACT($C3,"t"),$B3,IF(EXACT($C3," T"),$B3*3,IF($C3="c",$B3*48)))) HTH, Bernie "CRS" wrote in message ... Max, Here's what I have: Cols a1:d1 Ingredient | Quantity | Unit | Conversion; for conversion purposes i am converting all units to tsp ( 1 tsp = t, 1 Tblsp = 3t, 1 cup = 48 t). Amounts will be entered as "t" for tsp, "T" for Tblsp, "c" for cup. Here's how i modified my formula, based on your suggestion: =IF($A3="","",IF($C3="t",$B3,IF($C3="T",$B3*3,IF($ C3="c",$B3*48)))) It still returns same value whether "t" or "T". Would prefer not to have to designate input as "tsp" or "Tblsp", if possible. Ideas? Thanks for the input so far. I understand where you wereheading based on info i had provided. "Max" wrote: EXACT comes to mind .. Assuming in A2 down are the textstrings: tsp, Tbls you could have something like this in B2, copied down: =IF(EXACT(LEFT(A2),"t"),"Lower case t",IF(EXACT(LEFT(A2),"T"),"Upper case T","")) -- Max Singapore http://savefile.com/projects/236895 Downloads:20,500 Files:363 Subscribers:64 xdemechanik --- "CRS" wrote: in an IF formula, can I force recognition of case in a formula. I am trying to set up a converversion table that needs to differentiate between upper- and lower case case "t" (teaspoons vs. Tablespoons), so I don't have to lengthen to tsp vs. Tbls.? |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
recipe conversion
Didn't copy edited formula in response. My bad. Generally not that much of
a moron. "CRS" wrote: Max, Here's what I have: Cols a1:d1 Ingredient | Quantity | Unit | Conversion; for conversion purposes i am converting all units to tsp ( 1 tsp = t, 1 Tblsp = 3t, 1 cup = 48 t). Amounts will be entered as "t" for tsp, "T" for Tblsp, "c" for cup. Here's how i modified my formula, based on your suggestion: =IF($A3="","",IF($C3="t",$B3,IF($C3="T",$B3*3,IF($ C3="c",$B3*48)))) It still returns same value whether "t" or "T". Would prefer not to have to designate input as "tsp" or "Tblsp", if possible. Ideas? Thanks for the input so far. I understand where you wereheading based on info i had provided. "Max" wrote: EXACT comes to mind .. Assuming in A2 down are the textstrings: tsp, Tbls you could have something like this in B2, copied down: =IF(EXACT(LEFT(A2),"t"),"Lower case t",IF(EXACT(LEFT(A2),"T"),"Upper case T","")) -- Max Singapore http://savefile.com/projects/236895 Downloads:20,500 Files:363 Subscribers:64 xdemechanik --- "CRS" wrote: in an IF formula, can I force recognition of case in a formula. I am trying to set up a converversion table that needs to differentiate between upper- and lower case case "t" (teaspoons vs. Tablespoons), so I don't have to lengthen to tsp vs. Tbls.? |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
recipe conversion
Thanks to Bernie, also. That's pretty much what i had, just copied wrong,
unchanged cell to reply. "Bernie Deitrick" wrote: Try: =IF($A3="","",IF(EXACT($C3,"t"),$B3,IF(EXACT($C3," T"),$B3*3,IF($C3="c",$B3*48)))) HTH, Bernie "CRS" wrote in message ... Max, Here's what I have: Cols a1:d1 Ingredient | Quantity | Unit | Conversion; for conversion purposes i am converting all units to tsp ( 1 tsp = t, 1 Tblsp = 3t, 1 cup = 48 t). Amounts will be entered as "t" for tsp, "T" for Tblsp, "c" for cup. Here's how i modified my formula, based on your suggestion: =IF($A3="","",IF($C3="t",$B3,IF($C3="T",$B3*3,IF($ C3="c",$B3*48)))) It still returns same value whether "t" or "T". Would prefer not to have to designate input as "tsp" or "Tblsp", if possible. Ideas? Thanks for the input so far. I understand where you wereheading based on info i had provided. "Max" wrote: EXACT comes to mind .. Assuming in A2 down are the textstrings: tsp, Tbls you could have something like this in B2, copied down: =IF(EXACT(LEFT(A2),"t"),"Lower case t",IF(EXACT(LEFT(A2),"T"),"Upper case T","")) -- Max Singapore http://savefile.com/projects/236895 Downloads:20,500 Files:363 Subscribers:64 xdemechanik --- "CRS" wrote: in an IF formula, can I force recognition of case in a formula. I am trying to set up a converversion table that needs to differentiate between upper- and lower case case "t" (teaspoons vs. Tablespoons), so I don't have to lengthen to tsp vs. Tbls.? |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
recipe conversion
Welcome, good to hear you got going. Thanks.
-- Max Singapore http://savefile.com/projects/236895 Downloads:20,500 Files:362 Subscribers:64 xdemechanik --- "CRS" wrote in message ... OK. Syntax, parent error on my part. works well. Thanks for guidance. Appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Recipe | Excel Worksheet Functions | |||
recipe card program | New Users to Excel | |||
Set up costing sheet for multiple component recipe. | Excel Discussion (Misc queries) | |||
Conversion | Excel Discussion (Misc queries) | |||
Conversion | Excel Discussion (Misc queries) |