Having Trouble Finding Values

rcb007

Board Regular
Joined
Nov 12, 2020
Messages
90
Office Version
  1. 365
Platform
  1. Windows
I have the table to the Left which has all the data in a vertical form. I am trying to reformat it to the style to the Right, which is horizontal.

The formula I am using is
VBA Code:
=IF(Q3="","",(SUMIFS($O$2:$O$1000,$M$2:$M$1000,Q3,$N$2:$N$1000,$R$2)))

It seems that everything kinda works with the above formula except for the Values in Q13 and Q16 which has a Number and Letter Value.

Or is there a better way to organize this data?

Thanks for the help.


IDCOVERAGESAREALOOKUP TABLE
0.00​
IDImperviousPerviousRoof
200Pervious
1.35​
00.000.000.00
201Impervious
0.35​
2000.001.350.00
201Pervious
0.02​
2010.350.020.00
202Roof
0.17​
2020.000.000.17
203Roof
0.11​
2030.000.000.11
300Roof
0.53​
3000.000.000.53
301Impervious
0.17​
3010.170.550.25
301Pervious
0.55​
3020.100.320.00
301Roof
0.25​
3030.100.490.15
302Impervious
0.10​
3040.090.000.00
302Pervious
0.32​
304A0.000.000.00
303Impervious
0.10​
3050.080.000.00
303Pervious
0.49​
3060.090.230.14
303Roof
0.15​
306A0.000.000.00
304Impervious
0.09​
3070.140.090.00
304AImpervious
1.60​
3080.140.080.00
305Impervious
0.08​
3100.170.290.00
306Impervious
0.09​
3110.070.130.24
306Pervious
0.23​
3120.080.750.00
306Roof
0.14​
306AImpervious
0.33​
306APervious
0.06​
306ARoof
0.14​
307Impervious
0.14​
307Pervious
0.09​
308Impervious
0.14​
308Pervious
0.08​
310Impervious
0.17​
310Pervious
0.29​
311Impervious
0.07​
311Pervious
0.13​
311Roof
0.24​
312Impervious
0.08​
312Pervious
0.75​
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
The fact that those 2 values have a letter shouldn't make any difference.
Check that they don't have any trailing spaces.
 
Upvote 0
That was it... What would be the best method to add a trim into this formula?

Excel Formula:
=IF(J3="","",(REPLACE(J3,FIND("-",J3),25,"")))

I would assume that would take care of everything working like the others?
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,999
Members
452,373
Latest member
TimReeks

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