Forum

Notifications
Clear all

Excel Formula

10 Posts
2 Users
0 Reactions
107 Views
(@giri1245)
Posts: 5
Active Member
Topic starter
 

Can I get a formula for excel sheet to create a simple travel allowance form??

 If I type the Km the Amount column should be filled automatically

the arrangement should be like this, upto 2.5 Km =10, for 5Km= 13, for 7.5 Km=15, for 10 Km = 17

Help me plz 

 
Posted : 24/07/2024 1:58 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Best to create a small lookup table with the rates and 'from KM' limits. You can then use the LOOKUP function to retrieve the correct rate/allowance per KM. I've attached an example.

 
Posted : 24/07/2024 4:21 am
(@giri1245)
Posts: 5
Active Member
Topic starter
 

Sir

plz see the attachment and give me a best exampleScreenshot-2024-07-23-142227.jpg

 
Posted : 24/07/2024 4:53 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

A screenshot isn't really helpful.  Especially as it doesn't include the column and row headers. Better to upload your file. When you do that, please don't forget to press "Start upload" before you submit your reply.

 
Posted : 24/07/2024 4:55 am
(@giri1245)
Posts: 5
Active Member
Topic starter
 

Sir

the distance and amount column is to be filled. If I enter a value in distance cell then the amount should automatically show the amount

 
Posted : 24/07/2024 5:08 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

OK. See attached. I included your form in the file I sent earlier. See if you can get it to work.

 
Posted : 24/07/2024 5:16 am
(@giri1245)
Posts: 5
Active Member
Topic starter
 

Sir

Your example that send already is multiplying and is not the actual amount that I want. For eg. when I type 2 in the distance cell then the amount column should be 10, And as per the sheet I've attached

 
Posted : 24/07/2024 5:20 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

I misunderstood and though the allowance would be per KM. If that's not the case, just remove the multiplication bit of the formula. That would then be:

=LOOKUP(E4,Table1[KM],Table1[Rate])  

 
Posted : 24/07/2024 5:29 am
(@giri1245)
Posts: 5
Active Member
Topic starter
 

Thank you sir but there is another problem is there. 0-2.5 is 10, 2.5-5 is 13, 5-7.5 is 15. so plz correct me sir

 
Posted : 24/07/2024 5:50 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

OK, My bad! I didn't read the 'upto' in your initial question.

See attached. And just understand, this work for upto the limit in the KM column. Not upto and including. If that's what you need, please change the limits in the lookup table.

 
Posted : 24/07/2024 6:31 am
Share: