Reply to mr preet makkar for his query - intersting query

945 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: 185 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.

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
ARTICLESHIP 27 June 2026
Article

SNCO

Mumbai

CA Inter

View Details
Company
ARTICLESHIP 18 June 2026
Article Assistance

RB KESHRI & CO.

Mumbai

CA Inter

View Details
Company
22 June 2026
Accountant

Global Image Technologies Private Limited

New Delhi

MBA

View Details
Company
ARTICLESHIP 08 June 2026
Internal & Taxation Article

O P Bagla & Co LLP

New Delhi

CA Inter

View Details
Company
09 June 2026
Accounts Associate

S Madan and CO

New Delhi

Graduate (Any)

View Details
Company
24 June 2026
Chartered Accountant

CA Darshita Shah & Co

Nadiad

CA

View Details
Company
01 June 2026
Audit, Taxation & Compliance Executive

R P S K & Associates

Nashik

CA Inter

View Details
Company
25 June 2026
Accounts & Taxation Executive

Dindukurthy & Associates

Hyderabad

MBA

View Details