1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

How to optimize COUNTIF

So every day i paste new uniqe stock that came into a warehouse. In other tab someone would type ean codes of product with date of order. I want my sheet to color cell in the first tab, if product was ordered at least once (and optionally more than once with different colour).

For now, i put =COUNTIF(sheet2!A:A;sheet1!E2) formula in first sheet next to codes of products and it colours this formula green if its more than 0. Instead i could put purple if greater than one and green if equal 1.

I ultimately wanted cell with codes to get coloured, but couldn't figure that out.

My problem now is that it will be heavier as times go and often i dont go back more than a month, because by then every product is gone. I could solve it with copying older formulas and pasting it with ctrl + shift + v, but im searching for a way to automate that or find better solution.

submitted by /u/MainDifficultGeom
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#financial modeling with spreadsheets
#Excel alternatives for data analysis
#natural language processing for spreadsheets
#AI formula generation techniques
#generative AI for data analysis
#formula generator
#rows.com
#Excel compatibility
#Excel alternatives
#COUNTIF
#color cell
#formula
#ean codes
#sheet
#product
#order
#warehouse
#unique stock
#automate
#solution