Replace column letter with letter in other cell

Okoth

Board Regular
Joined
Sep 10, 2009
Messages
106
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I have 5 columns, 5 rows like this

ABCDE
1a111aC
2b212
3c313
4d414
5e515

<tbody>
</tbody>


I'd like to use SUM.IF to get the value from the column that is determined by the value in cell E1. The value in E1 is the result of a formula.

I'm kind of looking for a formula like this =SOM.ALS(A1:A5,A1,E1&"1":E1&"5") but of course that doesn't work.

How can I do this?
Thanks
 
You may be getting the "$1" error due to the full address of "$1:$1048576" << This works ONLY in xl2007 and beyond! If you are xl2003 or prior change the 1048576 to the approx 36K of the total rows in your sheet. Maybe this is your prob... Good luck Jim
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Thanks for the reply, Jim. I'm using Excel 2010 at the moment so that shouldn't be the problem.

And then I followed your advice and lowered the number to 3600. Worked!

I'm going to test it and et you know.

Mike and Jim, thank you both for the great help. This week I don't have time anymore to analyse the formula Mike gave, but I certainly want to know how it works! I'm just not working enough with Excel to become a pro.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,216,167
Messages
6,129,263
Members
449,497
Latest member
The Wamp

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