If I have a long string inside of a cell, lets say
UPDATE gtdb set camelot = '7A' WHERE major_key = 'D Minor'
Can I have excel use the Equals function on only part of the string? like this
(D Minor) = A13
Thanks for your help
If I have a long string inside of a cell, lets say
UPDATE gtdb set camelot = '7A' WHERE major_key = 'D Minor'
Can I have excel use the Equals function on only part of the string? like this
(D Minor) = A13
Thanks for your help
There are a whole slew of Functions (e.g. LEFT, RIGHT, MID) which can be used to return part of a text string. The question is, what do you want to tell Excel to return. An example workbook in which you show what you have and what you want would make this easier.
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
maybe like this
="UPDATE gtdb set camelot = '7A' WHERE major_key = "&A13
That nearly got it but it left out the single quote marks.
your code gave me: UPDATE gtdb set camelot = '7A' WHERE major_key = 6B
But i would like 6B inbetween single quotes like this:
UPDATE gtdb set camelot = '7A' WHERE major_key = '6B'
I think I may have reached the limitation???
Thanks a lot for your help guys
Just add the single quotes into the string then:
="UPDATE gtdb set camelot = '7A' WHERE major_key = '"&A13&"'"
Thanks,
that almost got it I ended up with single quotes on one side and double on the other, but i changed it to this and now it does what I want it to
="UPDATE gtdb set camelot = '"&B2&" WHERE major_key = '"&A2&""
that renders out this:
UPDATE gtdb set camelot = 'A-Flat Minor' WHERE major_key = '1A'
Confusing really as I only have 2 single quotes in the code and it pumps out four!???
Just how I need it.
Thanks alot for sorting me out guys!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks