banner_ad

Reply to mr preet makkar for his query - intersting query

Others 942 views 8 replies

Interesting query and smart solution.

Query:

Dear Friend <br> i want to make an excel sheet. <br> For example i want to give number to a = 1, b =2, c= 3, d=4, e=5 and so on. <br> now whenever i enter a name in cell e.g., i write "ca" it should be displayed as 4 (that is 3 for c and 1 for a) "da: should be displayed as 5 <br> cat shoould be displayed as 24 (3 for c, 1 for a and 20 for t) <br> is there any way to do this in excel?

 

 

Answer see attached file. very very simple solution by using just two formula : LEN & IF


Attached File : 25603 1068662 solution.xlsx downloaded: 182 times
Replies (8)

let me know if you have any simpler solution then this one..

Attached simplification..

password  is 11

hope it works

With inbulid of macro { to clear text from c2:ab2}

---------------------------------------------------------

Sub Clear()
'
' Clear Macro
'

'
    Range("C2:AB2").Select
    Selection.ClearContents
    Range("C2").Select
End Sub

After Modifying- Its Great Sharing , Really Awesme.....

 

Very nice gaurav... can you let us know how does you make this macro ? actually i want to learn about creting macro's in vba.

Hi Bhayiya (Hope i can call you) .. Well i have never chat with you but i heared a lot about you so thanks for being with us and guide us.. It will be great that i can share something which is / are useful for all members..

Bhaiyya, there are two ways to learn macro, 1. By writing scriptt manually and 2. By recording it... I always use second option.

Attached little Illustrative hope it work.

 

Originally posted by : Gaurav Aggarwal

Hi Bhayiya (Hope i can call you) .. Well i have never chat with you but i heared a lot about you so thanks for being with us and guide us.. It will be great that i can share something which is / are useful for all members..

Bhaiyya, there are two ways to learn macro, 1. By writing scripttt manually and 2. By recording it... I always use second option.

Attached little Illustrative hope it work.

 

Hi, Gaurav, Means The Step Which We Do After Recording Option Being On Will be Recorded ?????or What ??

Hi Ayush,

Yes it will record each steps you take after press "Record Macro", but still some commands are there by which you can modify computerized scripttt for required purpose.


CCI Pro

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
ARTICLESHIP 08 June 2026
Internal & Taxation Article

O P Bagla & Co LLP

New Delhi

CA Inter

View Details
Company
ARTICLESHIP 28 May 2026
Accounts, Audit & Compliance Executive

Shyam Joshi & Associates

Pune

B.Com

View Details
Company
ARTICLESHIP 15 May 2026
ARTICLE ASSISTANT, TRAINEE AND PAID ASSISTANT

YOGESH KAPOOR AND ASSOCIATES

New Delhi

B.Com

View Details
Company
ARTICLESHIP 14 May 2026
CA ARTICLE

PRAVEEN GARG & CO

Faridabad

CA Foundation

View Details
Company
26 May 2026
Audit executive

vdsr & co LLP

Chennai

CA Inter

View Details
Company
12 May 2026
Accounts Executive

Nafa Group

Mumbai

B.Com

View Details
Company
26 May 2026
Senior Accountant cum purchase Manager

Vardhaman Group of India

Pimpri Chinchwad

CA Inter

View Details
Company
26 May 2026
Education Content Creator

Adyayam Education LLP

Bengaluru

CA Foundation

View Details