LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
brookdale
 
Posts: n/a
Default Is this decent?


I have been using this forum now for a few days and I just wanted to
thank everyone for their help. I am 17, in my first job, and because I
am the only person here able to work with excel equations, I am being
asked to do a lot of stuff. But I only took a short excel class in 7th
grade! I am learning it all now, but I need solutions fast.

Here is one equation that I have so far:

=if(mid(c2,22,1)="M",mid(c2,22,3),if(mid(c2,22,1)= "T",mid(c2,22,3),if(mid(c2,22,1)="W",mid(c2,22,3), if(mid(c2,22,1)="F",mid(c2,22,3),mid(H2,22,3)

I have two columns, C and H. One of them is blank and the other will
contain the necessary script at space 22/3 characters. However, which
column I need occurs somewhat randomly. So here is my question...

Is there a more efficient way to write this? Really I would like to
say

=if(mid(c2,22,1)="any letter",mid(c2,22,3),mid(h2,22,3))

However, I don't know if there is away to notate the part in red. I
tried a "*", but it doesn't seem to work. my equation does the job, but
it seems to be very inefficient.

Thanks.


--
brookdale
------------------------------------------------------------------------
brookdale's Profile: http://www.excelforum.com/member.php...o&userid=24617
View this thread: http://www.excelforum.com/showthread...hreadid=382478

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"