formula question

hschussler

New Member
Joined
Jan 4, 2007
Messages
7
Is there a quicker way to write this formula rathe than clicking on each cell?

thanks,


=IF(($J$18=1),F36,if($J$18=2),G36,if($J$18=3),H36,if($J$18=4),I36,if($J$18=5),J36,if($J$18=6),K36,if($J$18=7),L36,if($J$18=8),M36,if($J$18=9),N36,if($J$18=10),O36,"")
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

MBinMTL

New Member
Joined
Nov 6, 2006
Messages
29
if J18 only ever contains a value between 1 and 10 try this: still have to click on each cell but it's easier to write

=CHOOSE($J$18,F36,G36,H36,I36,J36,K36,L36,M36,N36,O36)
 

Forum statistics

Threads
1,181,412
Messages
5,929,782
Members
436,689
Latest member
IbraheemWard

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
Top