=$B2 not working how I expect

Chicken Champ

New Member
Joined
Aug 24, 2019
Messages
3
I'm not really sure what to call my problem, probably something very easy to look up if I knew what to call this.

I have a sheet where column and row labels are the same values in the same order (B column is Mike, 2 row is Mike, C column is Suzy, 3 row is Suzy...). So B3 (Mike x Suzy) should be the same value as C2 (Mike x Suzy). If I have B3 be the cell where I input value, and C2 "=B3", fine. Problem is dragging that C2 formula down the 2 row... should end up with D2 =B4, E2 =B5, F2 =B6, etc etc. Doesn't want to do that. Starting off with C2 "=$B3" doesn't work either, dragging that is just pulling " = $B3" everywhere even though the $ should only be locking column reference?

What am I missing?
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
43,427
Office Version
365
Platform
Windows
Welcome to the MrExcel board!

Is this, copied to the right what you are looking for?

Excel Workbook
ABCDE
1MikeSuzyKenAnn
2Mikexxabc
3Suzyxx
4Ken
5Annabc
Transpose
 

Chicken Champ

New Member
Joined
Aug 24, 2019
Messages
3
Woof, that works, for generating all the "Mike x Suzy etc" stuff in row 2, but I don't really understand what the "COLUMNS($B2:C2)" and " &"" " is doing. I tried to guess that I would step down to "Suzy x Ken etc" with =INDEX($C3:$C5,COLUMNS($C3:D3))&"" things don't quite work the same?
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
43,427
Office Version
365
Platform
Windows
Woof, that works, for generating all the "Mike x Suzy etc" stuff in row 2, but I don't really understand what the "COLUMNS($B2:C2)" and " &"" " is doing. I tried to guess that I would step down to "Suzy x Ken etc" with =INDEX($C3:$C5,COLUMNS($C3:D3))&"" things don't quite work the same?
If you put your suggested formula in D3 in the above layout (that is, the first cell to the right of the diagonal in row 3) then it works for me. :)

Excel Workbook
ABCDE
1MikeSuzyKenAnn
2Mikexxabc
3SuzyxxS-KS-A
4KenS-K
5AnnabcS-A
Transpose


Another option would be to keep referring to rows 2:5 and keep counting the columns from column B like this

Excel Workbook
ABCDE
1MikeSuzyKenAnn
2Mikexxabc
3SuzyxxS-KS-A
4KenS-K
5AnnabcS-A
Transpose
 

Chicken Champ

New Member
Joined
Aug 24, 2019
Messages
3
Oh I see, "COLUMNS($x:y)" is just counting number of columns and using that number to reference a row, a way of saying if you're in the second column look at the second row, etc. I still have no idea what the &"" does, but I think I've got enough to at least finish building my table.

Thank you very much!
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
43,427
Office Version
365
Platform
Windows
Oh I see, "COLUMNS($x:y)" is just counting number of columns and using that number to reference a row, a way of saying if you're in the second column look at the second row, etc.
Exactly. :)

I still have no idea what the &"" does,
If you don't have that and any cells in the bottom left section of the table are blank the formula would return a zero (0) instead of blank. I have taken the &"" of the end of this cell's formula for example.

Excel Workbook
ABCDE
1MikeSuzyKenAnn
2Mikexx0abc
3SuzyxxS-KS-A
4KenS-K
5AnnabcS-A
Transpose
 

Forum statistics

Threads
1,089,297
Messages
5,407,442
Members
403,143
Latest member
CTremblay

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top