Help needed for Lookup function

Solveig

New Member
Joined
May 19, 2011
Messages
10
Hello!
I have a problem with my excel sheet and I hope someone can help me here!

In column A I have unique names. In column B-H is the days and in column I is the total. Every time a name appears on a day, an Y appears, and the number of Y's are counted on the last row. The problem is that for the different names there are different numbers of rows containing Y's - so how can I make a function that returns the row of totals for each of the names? (I don't need the Y's.) Is it possible to make the function work even if I delete all the content and replaces it with updated content (of course in the same format)? Thank you in advance for the help!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi, welcome to the board!

If I understand you correctly, your setup looks something like this:

Excel Workbook
ABCDEFGHI
1MonTueWedThuFriSatSunTotal
2NameYY2
3YY2
4Y1
5Y1
Sheet1


This would be extremely easier to calculate if you had the name on each row

Excel Workbook
ABCDEFGHI
1MonTueWedThuFriSatSunTotal
2NameYY2
3NameYY2
4NameY1
5NameY1
Sheet1
 
Upvote 0
Hello!
I have a problem with my excel sheet and I hope someone can help me here!

In column A I have unique names. In column B-H is the days and in column I is the total. Every time a name appears on a day, an Y appears, and the number of Y's are counted on the last row. The problem is that for the different names there are different numbers of rows containing Y's - so how can I make a function that returns the row of totals for each of the names? (I don't need the Y's.) Is it possible to make the function work even if I delete all the content and replaces it with updated content (of course in the same format)? Thank you in advance for the help!

create a pivot table with the count of the Y's
 
Upvote 0
Just a shot in the dark, if it works, great :)


Excel Workbook
ABCDEFGHI
1NamesMonTueWedThuFriSatSunTotal
2Name-1yy2
3Name-2yyyy4
4Name-3yyyyy5
5Name-4yyyy4
6Name-5yyyyy5
7Name-6yyyy4
8Name-7yyyyyy6
9Name-8yyyyy5
10Name-9yyyy4
11Name-10yyyyy5
12Name-11yyyyyy6
Sheet4
 
Upvote 0
Hotpepper, you are right - the only thing is that under all the Y's, there is a new rows with all the totals (sum of Y's.), and the name is only stated one time at the first row.

The problem is at for instance, at for name number 1 there is 5 rows of y's and 1 row of total, while for name number 2 there is only 3 rows of y's and 1 row of total.

I would like to return only the name + the rows of totals into a new sheet.

Is this possible?
 
Upvote 0
That's what I thought at first, but the op said this:

The problem is that for the different names there are different numbers of rows containing Y's
 
Upvote 0
Hotpepper, you are right - the only thing is that under all the Y's, there is a new rows with all the totals (sum of Y's.), and the name is only stated one time at the first row. (and there are no numbers along with the y's like you had in your model)

The problem is at for instance, at for name number 1 there is 5 rows of y's and 1 row of total, while for name number 2 there is only 3 rows of y's and 1 row of total.

I would like to return only the name + the rows of totals into a new sheet.

Is this possible?
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,818
Members
452,946
Latest member
JoseDavid

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