Would like to automate my spreadsheet.

Eddielion

New Member
Joined
Jun 17, 2005
Messages
42
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hello everyone. I'm running Windows 10 and Office 365. I'm looking for a formula or formulas to automate my spreadsheet. Right now this is what I have.


Book1
ABCDEFGHIJKLMNO
112345
29/1911022282940200My data is in cells A1:F250.
39/1861011162540200Numbers in row 1 goes from; H:BA
49/1731222242940201
Sheet1
Cell Formulas
RangeFormula
H2=COUNTIF($B2:$F10,H$1)
H3=COUNTIF($B3:$F11,H$1)
H4=COUNTIF($B4:$F12,H$1)
I2=COUNTIF($B2:$F10,I$1)
I3=COUNTIF($B3:$F11,I$1)
I4=COUNTIF($B4:$F12,I$1)
J2=COUNTIF($B2:$F10,J$1)
J3=COUNTIF($B3:$F11,J$1)
J4=COUNTIF($B4:$F12,J$1)
K2=COUNTIF($B2:$F10,K$1)
K3=COUNTIF($B3:$F11,K$1)
K4=COUNTIF($B4:$F12,K$1)
L2=COUNTIF($B2:$F10,L$1)
L3=COUNTIF($B3:$F11,L$1)
L4=COUNTIF($B4:$F12,L$1)


To change my spreadsheet,goto H1 change how many rows to look at then copy and paste across and also down.
I would like for G1 to be where I add my number of rows to look at. So I put a number there and it changes my sheet automatically.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
How about
=COUNTIF($B2:INDEX($F2:$F250,$G$1),H$1)
 
Upvote 0
Am I suppose to enter the formula with CTR, SHIFT, ENTER? because when I enter the formula in H1 and copy it across, it's ok. But when I copy it to H3 down and across it says"The formula in this cell refer to a range that has additional numbers adjacent to it."
 
Upvote 0
No need for CSE entry, it's a normal formula.
As for the warning message, you would have got that with your formula as well.
 
Upvote 0
Okay. Thank you very much Fluff. I really appreciate all the help you've givin me. Thanks again.
 
Upvote 0
Just to check, are you looking to limit the countif to only a few selected rows of data?
For instance only looking at 10 rows out of the 250?
 
Upvote 0
In that case the formula I provided should be ok.
 
Upvote 0
Yes, it's working. Thank you, I appreciate all the help. Thank you again. Eddielion
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,522
Messages
6,114,112
Members
448,549
Latest member
brianhfield

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