a good reason to use LOOKUP

Mitnageek

New Member
Joined
Apr 2, 2007
Messages
14
I was asked for help with this and used a function I've not used in a while. I don't see much discussion of this so thought i'd mention.

problem: a range of numbers and letters. Each letter representing a number (for some undisclosed reason). A lookup table was available to provide the letter values (I assume a two column table, letter in first column, value in second). A single formula was required to sum the numbers plus looked up values. (reasons were supplied, none very compelling, but a challenge is a challenge!)

Eventual solution

<code>={=SUM(IF((ISNUMBER(A1:D6)),A1:D6,LOOKUP(A1:D6,F1:F6,G1:G6)))}</code>

It has a simplicity that was entirely lacking from what I tried before getting here.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,222,607
Messages
6,167,038
Members
452,093
Latest member
JamesFromAustin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top