From ssharkins at gmail.com Tue Apr 11 12:11:42 2017 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 11 Apr 2017 13:11:42 -0400 Subject: [Dba-office] Fwd: Interesting Excel problem In-Reply-To: References: Message-ID: Our animal care submits some weights in a strange format: pound;ounce So, the baby bobcat's weights might resemble 10;7, 14;3, 14;8, and so on. Parsing them is no problem. But, evaluating and returning poundage in decimal format is proving a challenge because I'm seeing something weird along the way. Specifically, regardless of how I concatenate the two values, I get unexpected results. I used Column To Text to parse the values using the ; character as the delimiter. Pounds are in column B, the ounce value is in column C. In column D, I use the formula: =C4/16 to convert the ounce value into a decimal value. Here's where I run into trouble -- I've been unable to concatenate the pound integer and the results of that formula to return 10.4375 10 is the number of pounds; .4375 is 7 ounces, expressed as a decimal. It's impossible to put them together! I first tried =B4&D4 which returns 100.4375 instead of 10.4375. I've tried CONCATENATE(). I've tried working with a text value instead of the results of a formula. I've tried TRIM() and ABS() -- there's something going on that I clearly don't understand. There's probably an easier way to get what I need -- forest for the trees. But I don't understand why concatenating these two values -- whether value or text -- wants to add a 0 to the integer. Susan H. From DJKR at msn.com Tue Apr 11 12:23:34 2017 From: DJKR at msn.com (DJK Robinson) Date: Tue, 11 Apr 2017 17:23:34 +0000 Subject: [Dba-office] Fwd: Interesting Excel problem In-Reply-To: References: , Message-ID: Just a thought, Susan - how about adding them? B4 + D4 John ________________________________ From: Dba-office on behalf of Susan Harkins Sent: 11 April 2017 17:11 To: dba-office at databaseadvisors.com Subject: [Dba-office] Fwd: Interesting Excel problem Our animal care submits some weights in a strange format: pound;ounce So, the baby bobcat's weights might resemble 10;7, 14;3, 14;8, and so on. Parsing them is no problem. But, evaluating and returning poundage in decimal format is proving a challenge because I'm seeing something weird along the way. Specifically, regardless of how I concatenate the two values, I get unexpected results. I used Column To Text to parse the values using the ; character as the delimiter. Pounds are in column B, the ounce value is in column C. In column D, I use the formula: =C4/16 to convert the ounce value into a decimal value. Here's where I run into trouble -- I've been unable to concatenate the pound integer and the results of that formula to return 10.4375 10 is the number of pounds; .4375 is 7 ounces, expressed as a decimal. It's impossible to put them together! I first tried =B4&D4 which returns 100.4375 instead of 10.4375. I've tried CONCATENATE(). I've tried working with a text value instead of the results of a formula. I've tried TRIM() and ABS() -- there's something going on that I clearly don't understand. There's probably an easier way to get what I need -- forest for the trees. But I don't understand why concatenating these two values -- whether value or text -- wants to add a 0 to the integer. Susan H. _______________________________________________ Dba-office mailing list Dba-office at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-office Dba-office Info Page - DataBase Advisors databaseadvisors.com To see the collection of prior postings to the list, visit the Dba-office Archives. Using Dba-office: To post a message to all the list members, send ... From gustav at cactus.dk Tue Apr 11 12:41:32 2017 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Apr 2017 17:41:32 +0000 Subject: [Dba-office] Fwd: Interesting Excel problem Message-ID: Hi Susan How about: =B4+C4/16 /gustav -----Oprindelig meddelelse----- Fra: Dba-office [mailto:dba-office-bounces at databaseadvisors.com] P? vegne af Susan Harkins Sendt: 11. april 2017 19:12 Til: dba-office at databaseadvisors.com Emne: [Dba-office] Fwd: Interesting Excel problem Our animal care submits some weights in a strange format: pound;ounce So, the baby bobcat's weights might resemble 10;7, 14;3, 14;8, and so on. Parsing them is no problem. But, evaluating and returning poundage in decimal format is proving a challenge because I'm seeing something weird along the way. Specifically, regardless of how I concatenate the two values, I get unexpected results. I used Column To Text to parse the values using the ; character as the delimiter. Pounds are in column B, the ounce value is in column C. In column D, I use the formula: =C4/16 to convert the ounce value into a decimal value. Here's where I run into trouble -- I've been unable to concatenate the pound integer and the results of that formula to return 10.4375 10 is the number of pounds; .4375 is 7 ounces, expressed as a decimal. It's impossible to put them together! I first tried =B4&D4 which returns 100.4375 instead of 10.4375. I've tried CONCATENATE(). I've tried working with a text value instead of the results of a formula. I've tried TRIM() and ABS() -- there's something going on that I clearly don't understand. There's probably an easier way to get what I need -- forest for the trees. But I don't understand why concatenating these two values -- whether value or text -- wants to add a 0 to the integer. Susan H. From ssharkins at gmail.com Tue Apr 11 13:09:28 2017 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 11 Apr 2017 14:09:28 -0400 Subject: [Dba-office] Fwd: Interesting Excel problem In-Reply-To: References: Message-ID: Gustav, I'll try it -- I hadn't thought about concatenating the actual expression. The problem was the internal 0 integer. Formatting the cell to not display it didn't work, but using TEXT() to omit it did -- but your expression eliminates the whole concatenating problem -- I was stuck there only seeing it as concatenation and not simple math. it's always something simple and sometimes I just don't see it -- thanks for the solution. I appreciate it. Susan H. Susan On Tue, Apr 11, 2017 at 1:41 PM, Gustav Brock wrote: > Hi Susan > > How about: > > =B4+C4/16 > > /gustav > > > -----Oprindelig meddelelse----- > Fra: Dba-office [mailto:dba-office-bounces at databaseadvisors.com] P? vegne > af Susan Harkins > Sendt: 11. april 2017 19:12 > Til: dba-office at databaseadvisors.com > Emne: [Dba-office] Fwd: Interesting Excel problem > > Our animal care submits some weights in a strange format: > > pound;ounce > > So, the baby bobcat's weights might resemble 10;7, 14;3, 14;8, and so on. > > Parsing them is no problem. But, evaluating and returning poundage in > decimal format is proving a challenge because I'm seeing something weird > along the way. Specifically, regardless of how I concatenate the two > values, I get unexpected results. > > I used Column To Text to parse the values using the ; character as the > delimiter. Pounds are in column B, the ounce value is in column C. In > column D, I use the formula: > > =C4/16 > > to convert the ounce value into a decimal value. > > Here's where I run into trouble -- I've been unable to concatenate the > pound integer and the results of that formula to return > > 10.4375 > > 10 is the number of pounds; .4375 is 7 ounces, expressed as a decimal. > > It's impossible to put them together! > > I first tried > > =B4&D4 > > which returns > > 100.4375 > > instead of 10.4375. > > I've tried CONCATENATE(). I've tried working with a text value instead of > the results of a formula. I've tried TRIM() and ABS() -- there's something > going on that I clearly don't understand. > > There's probably an easier way to get what I need -- forest for the trees. > But I don't understand why concatenating these two values -- whether value > or text -- wants to add a 0 to the integer. > > Susan H. > > _______________________________________________ > Dba-office mailing list > Dba-office at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-office > From ssharkins at gmail.com Tue Apr 11 13:22:57 2017 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 11 Apr 2017 14:22:57 -0400 Subject: [Dba-office] Fwd: Interesting Excel problem In-Reply-To: References: Message-ID: That's what I'm doing. I'm so grateful for you folks! Susan H. On Tue, Apr 11, 2017 at 1:23 PM, DJK Robinson wrote: > Just a thought, Susan - how about adding them? B4 + D4 > > > John > > ________________________________ > From: Dba-office on behalf of > Susan Harkins > Sent: 11 April 2017 17:11 > To: dba-office at databaseadvisors.com > Subject: [Dba-office] Fwd: Interesting Excel problem > > Our animal care submits some weights in a strange format: > > pound;ounce > > So, the baby bobcat's weights might resemble 10;7, 14;3, 14;8, and so on. > > Parsing them is no problem. But, evaluating and returning poundage in > decimal format is proving a challenge because I'm seeing something weird > along the way. Specifically, regardless of how I concatenate the two > values, I get unexpected results. > > I used Column To Text to parse the values using the ; character as the > delimiter. Pounds are in column B, the ounce value is in column C. In > column D, I use the formula: > > =C4/16 > > to convert the ounce value into a decimal value. > > Here's where I run into trouble -- I've been unable to concatenate the > pound integer and the results of that formula to return > > 10.4375 > > 10 is the number of pounds; .4375 is 7 ounces, expressed as a decimal. > > It's impossible to put them together! > > I first tried > > =B4&D4 > > which returns > > 100.4375 > > instead of 10.4375. > > I've tried CONCATENATE(). I've tried working with a text value instead of > the results of a formula. I've tried TRIM() and ABS() -- there's something > going on that I clearly don't understand. > > There's probably an easier way to get what I need -- forest for the trees. > But I don't understand why concatenating these two values -- whether value > or text -- wants to add a 0 to the integer. > > Susan H. > _______________________________________________ > Dba-office mailing list > Dba-office at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-office > Dba-office Info Page - DataBase Advisors databaseadvisors.com/mailman/listinfo/dba-office> > databaseadvisors.com > To see the collection of prior postings to the list, visit the Dba-office > Archives. Using Dba-office: To post a message to all the list members, send > ... > > > > _______________________________________________ > Dba-office mailing list > Dba-office at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-office > From stuart at lexacorp.com.pg Tue Apr 11 14:48:45 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 12 Apr 2017 05:48:45 +1000 Subject: [Dba-office] Fwd: Interesting Excel problem In-Reply-To: References: , Message-ID: <58ED331D.23157.5BEB1315@stuart.lexacorp.com.pg> Others have pointed out, Contcatenate and & add strings together, not the value of the strings. You need to use + instead end up with the sum of the two parts. That said, you can do it all without in a single step without having to go through Text To Column: =LEFT(A1,FIND(";",A1)-1)+MID(A1,FIND(";",A1)+1,3)/16 On 11 Apr 2017 at 13:11, Susan Harkins wrote: > Our animal care submits some weights in a strange format: > > pound;ounce > > So, the baby bobcat's weights might resemble 10;7, 14;3, 14;8, and so > on. > > Parsing them is no problem. But, evaluating and returning poundage in > decimal format is proving a challenge because I'm seeing something > weird along the way. Specifically, regardless of how I concatenate the > two values, I get unexpected results. > > I used Column To Text to parse the values using the ; character as the > delimiter. Pounds are in column B, the ounce value is in column C. In > column D, I use the formula: > > =C4/16 > > to convert the ounce value into a decimal value. > > Here's where I run into trouble -- I've been unable to concatenate the > pound integer and the results of that formula to return > > 10.4375 > > 10 is the number of pounds; .4375 is 7 ounces, expressed as a decimal. > > It's impossible to put them together! > > I first tried > > =B4&D4 > > which returns > > 100.4375 > > instead of 10.4375. > > I've tried CONCATENATE(). I've tried working with a text value instead > of the results of a formula. I've tried TRIM() and ABS() -- there's > something going on that I clearly don't understand. > > There's probably an easier way to get what I need -- forest for the > trees. But I don't understand why concatenating these two values -- > whether value or text -- wants to add a 0 to the integer. > > Susan H. > _______________________________________________ > Dba-office mailing list > Dba-office at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-office > From ssharkins at gmail.com Tue Apr 11 14:59:57 2017 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 11 Apr 2017 15:59:57 -0400 Subject: [Dba-office] Fwd: Interesting Excel problem In-Reply-To: <58ED331D.23157.5BEB1315@stuart.lexacorp.com.pg> References: <58ED331D.23157.5BEB1315@stuart.lexacorp.com.pg> Message-ID: Now you're just showing off. :) Thank you Stuart -- I might actually write this up. Susan H. On Tue, Apr 11, 2017 at 3:48 PM, Stuart McLachlan wrote: > Others have pointed out, Contcatenate and & add strings together, not the > value of the > strings. You need to use + instead end up with the sum of the two parts. > > That said, you can do it all without in a single step without having to go > through Text To > Column: > > =LEFT(A1,FIND(";",A1)-1)+MID(A1,FIND(";",A1)+1,3)/16 > > > On 11 Apr 2017 at 13:11, Susan Harkins wrote: > > > Our animal care submits some weights in a strange format: > > > > pound;ounce > > > > So, the baby bobcat's weights might resemble 10;7, 14;3, 14;8, and so > > on. > > > > Parsing them is no problem. But, evaluating and returning poundage in > > decimal format is proving a challenge because I'm seeing something > > weird along the way. Specifically, regardless of how I concatenate the > > two values, I get unexpected results. > > > > I used Column To Text to parse the values using the ; character as the > > delimiter. Pounds are in column B, the ounce value is in column C. In > > column D, I use the formula: > > > > =C4/16 > > > > to convert the ounce value into a decimal value. > > > > Here's where I run into trouble -- I've been unable to concatenate the > > pound integer and the results of that formula to return > > > > 10.4375 > > > > 10 is the number of pounds; .4375 is 7 ounces, expressed as a decimal. > > > > It's impossible to put them together! > > > > I first tried > > > > =B4&D4 > > > > which returns > > > > 100.4375 > > > > instead of 10.4375. > > > > I've tried CONCATENATE(). I've tried working with a text value instead > > of the results of a formula. I've tried TRIM() and ABS() -- there's > > something going on that I clearly don't understand. > > > > There's probably an easier way to get what I need -- forest for the > > trees. But I don't understand why concatenating these two values -- > > whether value or text -- wants to add a 0 to the integer. > > > > Susan H. > > _______________________________________________ > > Dba-office mailing list > > Dba-office at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-office > > > > > _______________________________________________ > Dba-office mailing list > Dba-office at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-office >