summing values between two items

Hasson

Active Member
Joined
Apr 8, 2021
Messages
401
Office Version
  1. 2016
Platform
  1. Windows
hi experts
I have two data validation A7,B7 are linked with row1 when I select two datavalidations then should sum values in row2 which locates between two cells A7,B7 .
the result should be in CELLS D8
1234.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCCCDCECFCGCHCICJCKCLCM
1AA1AA2AA3AA4AA5AA6AA7AA8AA9AA10AA11AA12AA13AA14AA15AA16AA17AA18AA19AA20AA21AA22AA23AA24AA25AA26AA27AA28AA29AA30AA31AA32AA33AA34AA35AA36AA37AA38AA39AA40AA41AA42AA43AA44AA45AA46AA47AA48AA49AA50AA51AA52AA53AA54AA55AA56AA57AA58AA59AA60AA61AA62AA63AA64AA65AA66AA67AA68AA69AA70AA71AA72AA73AA74AA75AA76AA77AA78AA79AA80AA81AA82AA83AA84AA85AA86AA87AA88AA89AA90AA91
21232234567778768999542355577799098723442402501112224352903003103456330666663667370678907890444304404504604704804905005105205305405505605705805906006106206306406506606706806907007107207307407507607707807908008108208308408508608708808909009109209309409509609709809901000
3
4
5
6
7AA5AA16VALUE
8
9
10
SHEET1
Cells with Data Validation
CellAllowCriteria
A7:B7List=$A$1:$Y$1
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try:

Book1 (version 1).xlsb
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCCCDCECFCGCHCICJCKCLCM
1AA1AA2AA3AA4AA5AA6AA7AA8AA9AA10AA11AA12AA13AA14AA15AA16AA17AA18AA19AA20AA21AA22AA23AA24AA25AA26AA27AA28AA29AA30AA31AA32AA33AA34AA35AA36AA37AA38AA39AA40AA41AA42AA43AA44AA45AA46AA47AA48AA49AA50AA51AA52AA53AA54AA55AA56AA57AA58AA59AA60AA61AA62AA63AA64AA65AA66AA67AA68AA69AA70AA71AA72AA73AA74AA75AA76AA77AA78AA79AA80AA81AA82AA83AA84AA85AA86AA87AA88AA89AA90AA91
21232234567778768999542355577799098723442402501112224352903003103456330666663667370678907890444304404504604704804905005105205305405505605705805906006106206306406506606706806907007107207307407507607707807908008108208308408508608708808909009109209309409509609709809901000
3
4
5
6
7AA5AA1623172
Sheet4
Cell Formulas
RangeFormula
D7D7=SUM(INDEX(A2:CM2,MATCH(A7,A1:CM1,0)):INDEX(A2:CM2,MATCH(B7,A1:CM1,0)))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,331
Members
452,636
Latest member
laura12345

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