# Count data from other sheets into one cell

1. ## Count data from other sheets into one cell

Hi guys!

I have multiple sheets on a workbook, labelled 1st all the way to 31st.

I'm trying to create a master sheet, and in Cell B5 of each daily sheet, there will be 3 sets of information, Blue, Green or Orange.

I'm trying to sum all sheets, if it's blue in B5 on the daily sheets = 1, if its green in B5 on the daily sheets = 2, if its orange in B5 on the daily sheets = 3.

Whats the formula, to scan all sheets from the 1st to the 31st, and convert the words into the values above and a total sum?

Hope this makes sense? I've attached a workbook with a bit of information if that helps?

2. ## Re: Count data from other sheets into one cell

Create a named range (I used "Sheets") with a list of your tab names

in B5

=SUM(COUNTIF(INDIRECT("'"&Sheets&"'!B5:B100"),{"Blue","Orange"})*{0.5,1})

enter with Ctrl+Shift+Enter (or not if you have 365)

Update your profile with the correct Excel version (365,2019 etc)

The requirement in your workbook does not agree with that in your post (which was addressed in previous post!)

=SUM(COUNTIF(INDIRECT("'"&Sheets&"'!B5:B100"),{"Blue","Green","Orange"})*{1,2,3})

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1