Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » VBA(Excel, Word, etc...) » How can I make excel recognize the number is...


How can I make excel recognize the number is...Expand / Collapse
Author
Message
Posted 6/22/2010 8:09:29 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/5/2010 7:27:09 AM
Posts: 3, Visits: 4
I need help with making excel read a formula. For example I have 4' 5" typed in one cell. i want excel to recognize that as "ft" "in". And this is important because i have an sumif scenerio that is suppose to subtract according to a scenerio. Is there a way for excel to recognize the entry as measurement? If so, how can i make it recognize it?

corporate hospitality packages
Post #29362
Posted 7/9/2010 6:48:55 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/9/2010 6:54:21 AM
Posts: 3, Visits: 3
I don't think you can have 4' 5" treated as a value, but you can convert it to a value using this formula (data in A1):
=VALUE(LEFT(A1,1))*12 + VALUE(MID(A1,4,LEN(A1)-4))

Buttons And Triangles In Cells
Post #29419
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 10:52pm