Add Value to Column Based on Another Column

Cooker83

New Member
Joined
Jun 10, 2013
Messages
1
Hi all,
I have a question that's a little hard to explain.. I have 2 cells, A1 and A2 and also a table C1:D4. I want to use formulas, no VBA/macro, to input a value from the table into A3. Let me give an example..

[TABLE="class: grid, width: 200"]
<TBODY>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]24
[/TD]
[TD][/TD]
[TD]w
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]3
[/TD]
[TD][/TD]
[TD]x
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD]y
[/TD]
[TD]11
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD]z
[/TD]
[TD]16
[/TD]
[/TR]
</TBODY>[/TABLE]

I want A3 to figure out that A1/A2 equals 8 AND also return a value from column C that is larger than my A1/A2 value. So in A3, I want 'y' to show up. Now if I change A1 to 36 I would want A3 to show me 'z'.
Thanks for looking,
Greg
 
Hi And Welcome To The MR Excel Board

Try Below ( Formula Must confirm With ( CTRL + SHIFT + ENTER) other wise it will not work)
Formula A3 =INDEX(C1:C4,MATCH(TRUE,D1:D4>A1/A2,0)) See below

Excel Workbook
ABCD
124w1
23x8
3yy11
4z16
Sheet1
 
Last edited:
Upvote 0

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