मुख्य सामग्री पर जाएं

एक्सेल में टेक्स्ट स्ट्रिंग्स को फॉर्मूले में कैसे बदलें?

लेखक: ज़ियाओयांग अंतिम संशोधित: 2014-06-03

यदि =A1 + B1 प्रारूप में बहुत सारी टेक्स्ट स्ट्रिंग्स हैं, तो आपको इन टेक्स्ट स्ट्रिंग्स को वास्तविक सूत्रों में परिवर्तित करने और अपने वर्कशीट में उनके मानों की गणना करने की आवश्यकता है, दुर्भाग्यवश, Excel में इसे हल करने के लिए कोई प्रत्यक्ष विधि नहीं है। लेकिन, यहां मैं आपके लिए कुछ दिलचस्प ट्रिक्स के बारे में बात कर सकता हूं।

उपयोगकर्ता परिभाषित फ़ंक्शन के साथ टेक्स्ट स्ट्रिंग्स को सूत्रों में कनवर्ट करें

एक्सेल के लिए कुटूल के साथ टेक्स्ट स्ट्रिंग्स को सूत्रों में बदलें


तीर नीला दायां बुलबुला उपयोगकर्ता परिभाषित फ़ंक्शन के साथ टेक्स्ट स्ट्रिंग्स को सूत्रों में कनवर्ट करें

निम्नलिखित संक्षिप्त वीबीए कोड आपको इन चरणों के अनुसार पाठ को सूत्र में बदलने की समस्या से निपटने में मदद कर सकता है:

1. दबाए रखें ALT + F11 कुंजियाँ, और यह खुल जाती है एप्लीकेशन विंडो के लिए माइक्रोसॉफ्ट विज़ुअल बेसिक.

2। क्लिक करें सम्मिलित करें > मॉड्यूल, और निम्नलिखित कोड को इसमें पेस्ट करें मॉड्यूल विंडो.

वीबीए कोड: टेक्स्ट स्ट्रिंग्स को सूत्रों में बदलें

Function Eval(Ref As String)
Application.Volatile
Eval = Evaluate(Ref)
End Function

3. इस कोड को सहेजें और अपनी वर्कशीट पर वापस लौटें, इस सूत्र को दर्ज करें =इवल(C1) एक रिक्त कक्ष में (C1 इसमें टेक्स्ट स्ट्रिंग सेल है जिसे आप फॉर्मूला में कनवर्ट करना चाहते हैं), स्क्रीनशॉट देखें:

दस्तावेज़-रूपांतरित-पाठ--से-सूत्र1

4। फिर दबायें दर्ज कुंजी, और सेल D1 का चयन करें, भरण हैंडल को उस सीमा तक खींचें जहां आप इस सूत्र को लागू करना चाहते हैं। स्क्रीनशॉट देखें:

दस्तावेज़-रूपांतरित-पाठ--से-सूत्र1


तीर नीला दायां बुलबुला एक्सेल के लिए कुटूल के साथ टेक्स्ट स्ट्रिंग्स को सूत्रों में बदलें

यदि आपको उपरोक्त कोड का उपयोग करना पसंद नहीं है, तो आप आवेदन कर सकते हैं एक्सेल के लिए कुटूलहै टेक्स्ट को फ़ॉर्मूला में बदलें फीचर, इसकी मदद से आप टेक्स्ट स्ट्रिंग्स को एक साथ फॉर्मूलों में भी बदल सकते हैं।

एक्सेल के लिए कुटूल इसमें 300 से अधिक उपयोगी एक्सेल टूल शामिल हैं। 30 दिनों में बिना किसी सीमा के प्रयास करने के लिए निःशुल्क। अब समझे.

एक्सेल के लिए कुटूल स्थापित करने के बाद, कृपया ऐसा करें:

1. उन टेक्स्ट स्ट्रिंग्स का चयन करें जिन्हें आप कनवर्ट करना चाहते हैं।

2। क्लिक करें कुटूल > सामग्री परिवर्तक > टेक्स्ट को फ़ॉर्मूला में बदलें, स्क्रीनशॉट देखें:

दस्तावेज़-रूपांतरित-पाठ--से-सूत्र1

3. और आपके सभी चयनित टेक्स्ट स्ट्रिंग्स को वास्तविक सूत्रों में परिवर्तित कर दिया गया है और उनके मान भी प्राप्त कर लिए गए हैं। स्क्रीनशॉट देखें:

दस्तावेज़-रूपांतरित-पाठ--से-सूत्र4 -2 दस्तावेज़-रूपांतरित-पाठ--से-सूत्र5

इस कनवर्ट टेक्स्ट को फॉर्मूला सुविधा के बारे में अधिक जानने के लिए।


संबंधित लेख:

एक्सेल में फॉर्मूला को टेक्स्ट स्ट्रिंग में कैसे बदलें?

सर्वोत्तम कार्यालय उत्पादकता उपकरण

🤖 कुटूल्स एआई सहयोगी: निम्न के आधार पर डेटा विश्लेषण में क्रांति लाएं: बुद्धिमान निष्पादन   |  कोड जनरेट करें  |  कस्टम फ़ॉर्मूले बनाएं  |  डेटा का विश्लेषण करें और चार्ट बनाएं  |  कुटूल फ़ंक्शंस का आह्वान करें...
लोकप्रिय सुविधाएँ: डुप्लिकेट ढूंढें, हाइलाइट करें या पहचानें   |  रिक्त पंक्तियाँ हटाएँ   |  डेटा खोए बिना कॉलम या सेल को संयोजित करें   |   फॉर्मूला के बिना गोल ...
सुपर लुकअप: एकाधिक मानदंड VLookup    मल्टीपल वैल्यू वीलुकअप  |   अनेक शीटों में VLookup   |   फजी लुकअप ....
उन्नत ड्रॉप-डाउन सूची: शीघ्रता से ड्रॉप डाउन सूची बनाएं   |  आश्रित ड्रॉप डाउन सूची   |  बहु-चयन ड्रॉप डाउन सूची ....
स्तम्भ प्रबंधक: कॉलमों की एक विशिष्ट संख्या जोड़ें  |  कॉलम ले जाएँ  |  छिपे हुए कॉलम की दृश्यता स्थिति टॉगल करें  |  रेंज और कॉलम की तुलना करें ...
फीचर्ड फीचर्स: ग्रिड फोकस   |  डिजाइन देखें   |   बड़ा फॉर्मूला बार    कार्यपुस्तिका एवं शीट प्रबंधक   |  संसाधन लाइब्रेरी (ऑटो टेक्स्ट)   |  खजूर बीनने वाला   |  कार्यपत्रकों को संयोजित करें   |  एन्क्रिप्ट/डिक्रिप्ट सेल    सूची के अनुसार ईमेल भेजें   |  सुपर फ़िल्टर   |   विशेष फ़िल्टर (फ़िल्टर बोल्ड/इटैलिक/स्ट्राइकथ्रू...) ...
शीर्ष 15 टूलसेट12 टेक्स्ट टूल्स (पाठ जोड़ें, अक्षर हटाएँ, ...)   |   50 + चार्ट प्रकार (गैन्ट चार्ट, ...)   |   40+ प्रैक्टिकल सूत्र (जन्मदिन के आधार पर आयु की गणना करें, ...)   |   19 निवेशन टूल्स (QR कोड डालें, पथ से चित्र सम्मिलित करें, ...)   |   12 रूपांतरण टूल्स (शब्दों को संख्याएँ, मुद्रा रूपांतरण, ...)   |   7 विलय और विभाजन टूल्स (उन्नत संयोजन पंक्तियाँ, विभाजन कोशिकाओं, ...)   |   ... और अधिक

एक्सेल के लिए कुटूल के साथ अपने एक्सेल कौशल को सुपरचार्ज करें, और पहले जैसी दक्षता का अनुभव करें। एक्सेल के लिए कुटूल उत्पादकता बढ़ाने और समय बचाने के लिए 300 से अधिक उन्नत सुविधाएँ प्रदान करता है।  वह सुविधा प्राप्त करने के लिए यहां क्लिक करें जिसकी आपको सबसे अधिक आवश्यकता है...

Description


ऑफिस टैब ऑफिस में टैब्ड इंटरफ़ेस लाता है, और आपके काम को बहुत आसान बनाता है

  • Word, Excel, PowerPoint में टैब्ड संपादन और रीडिंग सक्षम करें, प्रकाशक, एक्सेस, विसियो और प्रोजेक्ट।
  • नई विंडो के बजाय एक ही विंडो के नए टैब में एकाधिक दस्तावेज़ खोलें और बनाएं।
  • आपकी उत्पादकता 50% बढ़ जाती है, और आपके लिए हर दिन सैकड़ों माउस क्लिक कम हो जाते हैं!
Comments (16)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I am finding this to be not working properly. As everyone else has said (and I could not see a satisfactory solution), it does not work when trying to pull in stuff from other worksheets in the same workbook. It's frustrating and I am having to give up on this and find another solution. So the Google search continues!
This comment was minimized by the moderator on the site
Thank you very much!!! GREAT IDEA!!!
This comment was minimized by the moderator on the site
Hello
For the first defined function way, I have a problem.
when the resources for concatenate function are in another worksheet, Eval function works properly when that resource worksheet is open, But immediately when I close that resource worksheet, Eval function Not working. How I can change the codes for eval function to use closed resource worksheets?
This comment was minimized by the moderator on the site
Hello Johnny
about Hussein’s issue, if the external workbook is closed INDIRECT gives #REF! error. Do you have other solution?
This comment was minimized by the moderator on the site
use indirect only works with open workbooks.


solution is to use indirect.ext from morefunc.


regards,
Hasan nasralla
This comment was minimized by the moderator on the site
Hi Hussein,

Just use the INDIRECT function in Excel. Does the same thing.
This comment was minimized by the moderator on the site
Greetings, the above code works perfectly inside the same workbook across different sheets, but in case i have a cell reference to an external workbook it returns #VALUE!. the formulas were calculating normally earlier.
Example for the formula can't be evaluated correctly: IFERROR(INDEX('[Tracking-OSP Outside Riyadh-07-09-2017.xlsx]Tracking WO'!$U$3:$U$19000,MATCH(A3&"",'[Tracking-OSP Outside Riyadh-07-09-2017.xlsx]Tracking WO'!$B$3:$B$19000,0)),INDEX('[Tracking-OSP Outside Riyadh-07-09-2017.xlsx]Tracking WO'!$U$3:$U$19000,MATCH(value(A3),'[Tracking-OSP Outside Riyadh-07-09-2017.xlsx]Tracking WO'!$B$3:$B$19000,0))).
This comment was minimized by the moderator on the site
The replace = with = works, so relieved. Thank you to whoever discovered and shared this nugget of Excel gold.
This comment was minimized by the moderator on the site
To clarify my other comment, I mass replaced the "=" character with the same "=" character, and that made the strings turn into formulas.
This comment was minimized by the moderator on the site
Hi Rich,
I'm just reading you comment on turning text into a formula. It seems that the function as mentioned above is not working. I'm not really a programmer but what i did is converting a formula into a text and in the text i have to replace a few values and combine it again in one text but now i need to convert it back into a formula. Could you give me a tip.
Regards
Frans
This comment was minimized by the moderator on the site
I don't know if this would always work, but I had a number of cells that had formulas stored as text strings. I did a full worksheet find replace on the "=" character, and all of my strings converted to formulas with that one action.
This comment was minimized by the moderator on the site
Thank you. Works well with the user defined function... I could do what I could not using the default functions of INDIRECT, ADDRESS et al provided. It fell short when I had a range to be input.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations