My formula is getting a syntax error when I try to apply to column
Hi everyone,
I am getting a syntax error when applying a formula to a column when the formula works when I use it. I am trying to use a helper column to identify unique order numbers for a sheet that will be continuously updated.
=IF(COUNTIF([Original Order #]$1:[Original Order #]@row, [Original Order #]@row) = 1, [Original Order #]@row, "")
Answers
-
It is because of the direct cell reference instead of @row.
Try this instead… Insert an auto-number type column (called "Auto" in this example). Then insert a text/number column (called "Row" in this example) and use this column formula:
=MATCH(Auto@row, Auto:Auto, 0)
Then your COUNTIFS would adjust to:
=IF(COUNTIFS([Original Order #]:[Original Order #], @cell = [Original Order #]@row, Row:Row, @cell <= Row@row) = 1, [Original Order #]@row, "")
-
Hey Paul, I appreciate your assistance! I followed your method and it seemed to work but only partially. For some reason the formula then only grabbed certain Original Order #'s and not every instance of a unique order #. I will keep fiddling with it but thank you again.
-
Great take
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!