Need function in formula to only look at first 2 letters

Jgilmore

New Member
Joined
Sep 24, 2014
Messages
6
Hey All,

I am looking for a way to insert a function into this formula that will look at the first two letters in ('NCE NCW CDP Forecast'!D:D) part of the formula. The formula itself is correct, but it isn't pulling all of the information because some information in row D:D has more then 2 letters and this formula has to point to 2 letters only to work with the other sheets. E8 in this formula is what D:D is looking for hence, the reason to only see first 2 letters


Thanks for any help you can give.


=SUMIFS('NCE NCW CDP Forecast'!W:W,'NCE NCW CDP Forecast'!C:C,E7,'NCE NCW CDP Forecast'!D:D,E8,'kW Room'!I:I,"kw")/1000
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hello Jgilmore, welcome to MrExcel

So E8 contains 2 letters and for that condition you want to include all entries in 'NCE NCW CDP Forecast'!D:D that start with those 2 letters? Try using a wildcard like this:

=SUMIFS('NCE NCW CDP Forecast'!W:W,'NCE NCW CDP Forecast'!C:C,E7,'NCE NCW CDP Forecast'!D:D,E8&"*",'kW Room'!I:I,"kw")/1000
 
Upvote 0
Thanks for welcome Barry and yes that worked well for this formula. It worked on looking for the last letters as well.
 
Upvote 0

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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