Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CRS CRS is offline
external usenet poster
 
Posts: 13
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CRS CRS is offline
external usenet poster
 
Posts: 13
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CRS CRS is offline
external usenet poster
 
Posts: 13
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CRS CRS is offline
external usenet poster
 
Posts: 13
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CRS CRS is offline
external usenet poster
 
Posts: 13
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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
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
Recipe Paul Excel Worksheet Functions 2 September 25th 08 04:33 PM
recipe card program Donna New Users to Excel 1 February 16th 07 11:20 PM
Set up costing sheet for multiple component recipe. Jackam Excel Discussion (Misc queries) 1 September 27th 06 09:34 AM
Conversion [email protected] Excel Discussion (Misc queries) 0 August 6th 06 10:15 PM
Conversion Duke Energy Excel Discussion (Misc queries) 0 January 24th 06 09:30 PM


All times are GMT +1. The time now is 06:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"