Hi all
i currently have this code for my excel spreadsheet it is to count the instances where i want to find out how many types of red apples i have, so i wrote the following function.
]=SUM((TRIM(RD!B2:RD!B590)="Apples")*(TRIM(RD!I2:RD!I590)="Red")
this is where column B is the type of fruit and column I is the fruit's colour
so i was wondering if there is a way to simplify the fomula where i define the various ranges so that i can simplify the fomula to something like
]=SUM((TRIM(A)="Apples")*(TRIM(B)="Red")
where A=RD!B2:RD!B590 and B=RD!I2:RD!I590
i tried using the Define->name function (where i set the range as the name) but i couldnt get it to work.
Any suggestions?
Bookmarks