• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

finding a value in a conversion table [SOLVED]

rjanuary

New Member
I want to create a table simiar to the one below. Then I want Excel to find (lookup) the respective value when I enter a "convert from" unit from the left column and a "convert to" unit from the top row. How can I do this?


........GALLONS...FL.OZ....LITERS....MILLILITERS

GALLONS.........1.........128......3.7854....3785.4

FL. OZ..........0.00781...1........0.02957...29.5735

LITERS..........0.26417...33.8141..1.........1000

MILLILITERS.....000264....0.03381..0.001.....1


Convert From Convert To Factor


The overall objective is part of a larger project to be able to enter an amount in one unit (convert from)of volume and calculate the equivalent amount in another (convert to)unit. Note that the periods are just added to the post to try to maintain spacing.
 
Hi, rjanuary!


First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.


As a starting point I'd recommend you to read the green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).


Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.


Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


And about questions in general...


If you haven't performed yet the search herein, try going to the topmost right zone of this page (Custom Search), type the keywords used in Tags field when creating the topic or other proper words and press Search button. You'd retrieve many links from this website, like the following one(s) -if any posted below-, maybe you find useful information and even the solution. If not please advise so as people who read it could get back to you as soon as possible.


And about this question in particular...


Try using CONVERT function, adding a new row and column for the exact measure unit denomination:


-----

[pre]
Code:
.			GALLONS		FL. OZ.		LITERS		MILLILITERS
gal		oz		lt		ml
GALLONS		gal	1		128		3,785411784	3785,411784
FL. OZ.		oz	0,0078125	1		0,02957353	29,57352956
LITERS		lt	0,264172052	33,8140227	1		1000
MILLILITERS	ml	0,000264172	0,033814023	0,001		1
[/pre]
-----


The formula for C3:F6 cells is:

=CONVERTIR(1;$B3;C$2) -----> in english: =CONVERT(1,$B3,C$2)


Regards!
 
Hi, rjanuary!

Since it seems to display the output that you posted I'm marking it as solved, please just advise if any issue. And welcome back whenever needed or wanted.

Regards!
 
Back
Top