Reply to mr preet makkar for his query - intersting query

947 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
Featured 15 June 2026
Senior Auditor

N. Dhawan & Co

New Delhi

CA Inter

View Details
Company
19 June 2026
Accounts Executive

Getfive Advisors Pvt. Ltd.

Ahmedabad

CA Inter

View Details
Company
ARTICLESHIP 30 June 2026
Taxation Content Writer Intern

Interactive Media Pvt Ltd.

New Delhi

CA Inter

View Details
Company
Featured 24 June 2026
HEAD - AUDIT AND TAXATION

A R JADHAV AND ASSOCIATES

Mumbai

CA Inter

View Details
Company
ARTICLESHIP 20 June 2026
Articleship

RB KESHRI & CO

Mumbai

B.Com

View Details
Company
ARTICLESHIP 27 June 2026
CA Articled Trainee And Paid Assistant

SKAA & Associates

New Delhi

CA Inter

View Details
Company
ARTICLESHIP 08 June 2026
Internal & Taxation Article

O P Bagla & Co LLP

New Delhi

CA Inter

View Details
Company
20 June 2026
Chartered Accountant

ANV & Company

New Delhi

CA

View Details