prevent table columns incrementing in formulas when you drag and fill a range

merlin777

Well-known Member
Joined
Aug 29, 2009
Messages
1,397
Office Version
  1. 2007
I have this:

=COUNTIF(ordertable[Column3],1B) to count all the reds in column 3 of my order table in column 1 of a table that counts the colours in the order table thus:


[TABLE="width: 241"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]colour[/TD]
[TD]red[/TD]
[TD]green[/TD]
[TD]blue[/TD]
[TD]black[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]quantity[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[TD]etc[/TD]
[/TR]
</tbody>[/TABLE]

There are over 40 columns of colours so i'm trying to drag the formula across the row so the criteria reference will increment but the column reference in the table increments too. Can I stop that from happening?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
normally it wsould be restrained with a dollar sign $ not sure how that works with tables
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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