Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default what's wrong with this function?

COLUMN B
r1 Grant Number
r2 NNX08AE13G S01
r3 NNX07AJ55G S01
r4 NNX08AE20G S03
r5 NNX08AE20G S02
r6 NNX10AF75G


COLUMN H Gives anticipated results
r1 SUPPL?
r2 =(MID(B2,12,1)) checks for supp flag (S)
r3 S
r4 S
r5 S
r6 blank


COLUMN I
r1 WHICH-SUPPL? this column repeats the function in all columns
r2 =MID(B2,13,2)
r3 "
r4 "
r5 "
r6 "


COLUMN J
r1 NOT-SUPPL this column repeats either function in all columns
r2 =if(H2<"S","00")
r3 =IF(H3="S",MID(B3,13,2))
r4 "
r5 "
r6 "


When I first typed in the mid function in Column I,
then copied it to the rest of the column, I got the expected
01, 01, 03, 02 and "false" for the for the row w/o an S but
when I tried to use the if statement, the function is repeated;
Now the mid function won't work at all.

Column J won't work at all.

What is wrong with the functions? or have I set something incorrectly?



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 181
Default what's wrong with this function?

In J2 try

=IF(H2="s",MID(B2,13,2),"00")

Some of the descriptions are vague (I don't understand how you expect j2 and
j3 to work as described) but it appears that you were perhaps losing it by
the time you got to col J. It looks like you came at it from the wrong angle
and hopefully my solution is what you are looking for. If not, let's try
again.
--
Russell Dawson
Excel Student

Please hit "Yes" if this post was helpful.


"DogmaDot" wrote:

COLUMN B
r1 Grant Number
r2 NNX08AE13G S01
r3 NNX07AJ55G S01
r4 NNX08AE20G S03
r5 NNX08AE20G S02
r6 NNX10AF75G


COLUMN H Gives anticipated results
r1 SUPPL?
r2 =(MID(B2,12,1)) checks for supp flag (S)
r3 S
r4 S
r5 S
r6 blank


COLUMN I
r1 WHICH-SUPPL? this column repeats the function in all columns
r2 =MID(B2,13,2)
r3 "
r4 "
r5 "
r6 "


COLUMN J
r1 NOT-SUPPL this column repeats either function in all columns
r2 =if(H2<"S","00")
r3 =IF(H3="S",MID(B3,13,2))
r4 "
r5 "
r6 "


When I first typed in the mid function in Column I,
then copied it to the rest of the column, I got the expected
01, 01, 03, 02 and "false" for the for the row w/o an S but
when I tried to use the if statement, the function is repeated;
Now the mid function won't work at all.

Column J won't work at all.

What is wrong with the functions? or have I set something incorrectly?



Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What wrong with sumproduct function? Eric Excel Discussion (Misc queries) 4 December 8th 09 10:48 AM
What wrong is it on using the indirect function? Eric Excel Discussion (Misc queries) 2 September 6th 09 04:39 PM
What's wrong with this IF function. GEM Excel Discussion (Misc queries) 5 July 24th 09 11:51 PM
What is Wrong with this function?????????? TaraD Excel Worksheet Functions 2 September 8th 06 07:47 PM
What am I doing wrong with PMT function? Marc Excel Discussion (Misc queries) 6 May 6th 06 10:35 PM


All times are GMT +1. The time now is 10:08 PM.

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"