Excel Formula Patterns

default_name

Board Regular
Joined
May 16, 2018
Messages
180
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hello,

I have an issue that I have really been scratching my head on.
Perhaps I am overthinking this, but I will try to describe it in detail.

I have a large spreadsheet (over 5k rows).
There is a formula pattern that I cant seem to get right when I try to apply it all the way down the worksheet.

I'll explain the first couple rows.
A value is gathered from another slightly smaller sheet (called 'Data Input') and placed on cell H2.
The row beneath it will keep track of a cumulative count from the data above it, beginning in H3.
A value is gathered from the 'Data Input' on cell I2, and beneath it the cumulative count is calculated.

Not sure if that makes sense. I will try to illustrate below.

Here are the formula patterns that I would WANT to happen:
...HIJKDI
...2='Data Input'!H2='Data Input'!I2='Data Input'!J2='Data Input'!K2.....='Data Input'!DI2
3=H2=H3+I2=I3+J2=J3+K2.....=DH3+DI2
4='Data Input'!H3='Data Input'!I3='Data Input'!I3='Data Input'!I3.....='Data Input'!DI3
5=H4=H5+I4=I5+J4=J5+K4.....=DH5+DI4
6='Data Input'!H4='Data Input'!I4='Data Input'!I4='Data Input'!I4.....='Data Input'!DI4
7=H6=H7+I6=I7+J6=J7+K6.....=DH7+DI6
8='Data Input'!H5='Data Input'!I5='Data Input'!I5='Data Input'!I5.....='Data Input'!DI5
9=H8=H9+I8=I9+J8=J9+K8.....=DH9+DI8
10='Data Input'!H6='Data Input'!I6='Data Input'!I6='Data Input'!I6.....='Data Input'!DI6
11=H10=H11+I10=I11+J10=J11+K10.....=DH11+DI10

Here are the formulas that CURRENTLY happen (the issue).
...HIJKDI
...2='Data Input'!H2='Data Input'!I2='Data Input'!J2='Data Input'!K2.....='Data Input'!DI2
3=H2=H3+I2=I3+J2=J3+K2.....=DH3+DI2
4='Data Input'!H3='Data Input'!I3='Data Input'!J3='Data Input'!K3.....='Data Input'!DI3
5=H4=H5+I4=I5+J4=J5+K4.....=DH5+DI4
6='Data Input'!H6='Data Input'!I6='Data Input'!J6='Data Input'!K6.....='Data Input'!DI6
7=H6=H7+I6=I7+J6=J7+K6.....=DH7+DI6
8='Data Input'!H7='Data Input'!I7='Data Input'!J7='Data Input'!K7.....='Data Input'!DI7
9=H8=H9+I8=I9+J8=J9+K8.....=DH9+DI8
10='Data Input'!H10='Data Input'!I10='Data Input'!J10='Data Input'!K10.....='Data Input'!DI10
11=H10=H11+I10=I11+J10=J11+K10.....=DH11+DI10

What am I doing wrong? Is there a more simple way to do this instead of hard-coding formulas into each cell?

I hope that makes sense.
Thanks in advance!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Not sure i understand what you need. See if this example with a small data sample helps

Sheet Data Input
Pasta1
HIJK
1Header1Header2Header3Header4
2103070120
3113171121
4123272122
5133373123
6143474124
Data Input


Other Sheet
Cell Formulas
RangeFormula
H2:H11H2=IF(MOD(ROWS(H$2:H2),2)=1, INDEX('Data Input'!H$2:H$8,INT((ROWS(H$2:H2)-1)/2)+1),H1)
I2:K11I2=IF(MOD(ROWS(I$2:I2),2)=1, INDEX('Data Input'!I$2:I$8,INT((ROWS(I$2:I2)-1)/2)+1),SUM(I1,H2))


Observe that the formula in column H (first column) is slightly different.
To others columns simply type the formula in I2, copy down and drag to the right

M.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,827
Messages
6,181,198
Members
453,022
Latest member
RobertV1609

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