Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default HELP! How to put an IF formula with "starts with" instead of bigger than or equal to

Hi,
I have the following data (x200 with all a different information that I
want to have an IF formula in the colomn next to the specific data when
if there is for instance for the line that says .MADZBIB that I want
only Excel to take the MID(cell;2ndletter till the 7nd letter) but ONLY
if the line starts with a dot (.) and for the ones that do not start
with a dot I want to Excel to do nothing. After that I want Excel to
place the first 7 digits after the dot in the cell.

The input:
Message is displayed from SITA archiv: 6353636 08.11.2006 01:05:23
QD HAMBI7X
..MADZBIB 072349 NOV06/AGNT9999/PID43007
#CAM
S1BOOKED/IBM/D4296/USD/1/
441/48011057301/D5331034701200/1/EA/2790.00/08116/MFR FAPE3/PRI AOG/
ACN 1027/PKG 0/VRN ESA28017648

=(IF(".";"MID(cell;2;7))")) does not work obviousbly because the line
only starts with a dot. How do I put this in the IF formula? That
instead of bigger than or smaller than or =, one for it starts
with........

Who knows???? I can not seem to figure it out and it has been taking up
a lot of my time to get it right...

I really hope someone can help me!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default HELP! How to put an IF formula with "starts with" instead of biggerthan or equal to

I'm not sure I understand...

with the data in A1
=if(left(a1,1)=".",mid(a1,2,6),a1)
or
=if(left(a1,1)=".",mid(a1,2,6),"")



debbedeb wrote:

Hi,
I have the following data (x200 with all a different information that I
want to have an IF formula in the colomn next to the specific data when
if there is for instance for the line that says .MADZBIB that I want
only Excel to take the MID(cell;2ndletter till the 7nd letter) but ONLY
if the line starts with a dot (.) and for the ones that do not start
with a dot I want to Excel to do nothing. After that I want Excel to
place the first 7 digits after the dot in the cell.

The input:
Message is displayed from SITA archiv: 6353636 08.11.2006 01:05:23
QD HAMBI7X
.MADZBIB 072349 NOV06/AGNT9999/PID43007
#CAM
S1BOOKED/IBM/D4296/USD/1/
441/48011057301/D5331034701200/1/EA/2790.00/08116/MFR FAPE3/PRI AOG/
ACN 1027/PKG 0/VRN ESA28017648

=(IF(".";"MID(cell;2;7))")) does not work obviousbly because the line
only starts with a dot. How do I put this in the IF formula? That
instead of bigger than or smaller than or =, one for it starts
with........

Who knows???? I can not seem to figure it out and it has been taking up
a lot of my time to get it right...

I really hope someone can help me!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default HELP! How to put an IF formula with "starts with" instead of bigger than or equal to

What I want is that if you have all this data, that only in the cells
next to the data with a starting dot there will be the formula used to.
so if there is not a dot at the beginning of the cell there then the
cell is empty and if it does start with a dot; that the mid formula
only gives me the 2nd to the 6th digit in this cell.

Do you understand what I mean??

Dave Peterson wrote:

I'm not sure I understand...

with the data in A1
=if(left(a1,1)=".",mid(a1,2,6),a1)
or
=if(left(a1,1)=".",mid(a1,2,6),"")



debbedeb wrote:

Hi,
I have the following data (x200 with all a different information that I
want to have an IF formula in the colomn next to the specific data when
if there is for instance for the line that says .MADZBIB that I want
only Excel to take the MID(cell;2ndletter till the 7nd letter) but ONLY
if the line starts with a dot (.) and for the ones that do not start
with a dot I want to Excel to do nothing. After that I want Excel to
place the first 7 digits after the dot in the cell.

The input:
Message is displayed from SITA archiv: 6353636 08.11.2006 01:05:23
QD HAMBI7X
.MADZBIB 072349 NOV06/AGNT9999/PID43007
#CAM
S1BOOKED/IBM/D4296/USD/1/
441/48011057301/D5331034701200/1/EA/2790.00/08116/MFR FAPE3/PRI AOG/
ACN 1027/PKG 0/VRN ESA28017648

=(IF(".";"MID(cell;2;7))")) does not work obviousbly because the line
only starts with a dot. How do I put this in the IF formula? That
instead of bigger than or smaller than or =, one for it starts
with........

Who knows???? I can not seem to figure it out and it has been taking up
a lot of my time to get it right...

I really hope someone can help me!


--

Dave Peterson


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default HELP! How to put an IF formula with "starts with" instead of bigger than or equal to

i want to basically copy the formula in the entire column without
having to delete it everytime for the ones that dont have the
information in the beginning that i want
debbedeb wrote:

What I want is that if you have all this data, that only in the cells
next to the data with a starting dot there will be the formula used to.
so if there is not a dot at the beginning of the cell there then the
cell is empty and if it does start with a dot; that the mid formula
only gives me the 2nd to the 6th digit in this cell.

Do you understand what I mean??

Dave Peterson wrote:

I'm not sure I understand...

with the data in A1
=if(left(a1,1)=".",mid(a1,2,6),a1)
or
=if(left(a1,1)=".",mid(a1,2,6),"")



debbedeb wrote:

Hi,
I have the following data (x200 with all a different information that I
want to have an IF formula in the colomn next to the specific data when
if there is for instance for the line that says .MADZBIB that I want
only Excel to take the MID(cell;2ndletter till the 7nd letter) but ONLY
if the line starts with a dot (.) and for the ones that do not start
with a dot I want to Excel to do nothing. After that I want Excel to
place the first 7 digits after the dot in the cell.

The input:
Message is displayed from SITA archiv: 6353636 08.11.2006 01:05:23
QD HAMBI7X
.MADZBIB 072349 NOV06/AGNT9999/PID43007
#CAM
S1BOOKED/IBM/D4296/USD/1/
441/48011057301/D5331034701200/1/EA/2790.00/08116/MFR FAPE3/PRI AOG/
ACN 1027/PKG 0/VRN ESA28017648

=(IF(".";"MID(cell;2;7))")) does not work obviousbly because the line
only starts with a dot. How do I put this in the IF formula? That
instead of bigger than or smaller than or =, one for it starts
with........

Who knows???? I can not seem to figure it out and it has been taking up
a lot of my time to get it right...

I really hope someone can help me!


--

Dave Peterson


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default HELP! How to put an IF formula with "starts with" instead of biggerthan or equal to

Did you try any of the suggestions?

Did any of them do what you wanted?

debbedeb wrote:

What I want is that if you have all this data, that only in the cells
next to the data with a starting dot there will be the formula used to.
so if there is not a dot at the beginning of the cell there then the
cell is empty and if it does start with a dot; that the mid formula
only gives me the 2nd to the 6th digit in this cell.

Do you understand what I mean??

Dave Peterson wrote:

I'm not sure I understand...

with the data in A1
=if(left(a1,1)=".",mid(a1,2,6),a1)
or
=if(left(a1,1)=".",mid(a1,2,6),"")



debbedeb wrote:

Hi,
I have the following data (x200 with all a different information that I
want to have an IF formula in the colomn next to the specific data when
if there is for instance for the line that says .MADZBIB that I want
only Excel to take the MID(cell;2ndletter till the 7nd letter) but ONLY
if the line starts with a dot (.) and for the ones that do not start
with a dot I want to Excel to do nothing. After that I want Excel to
place the first 7 digits after the dot in the cell.

The input:
Message is displayed from SITA archiv: 6353636 08.11.2006 01:05:23
QD HAMBI7X
.MADZBIB 072349 NOV06/AGNT9999/PID43007
#CAM
S1BOOKED/IBM/D4296/USD/1/
441/48011057301/D5331034701200/1/EA/2790.00/08116/MFR FAPE3/PRI AOG/
ACN 1027/PKG 0/VRN ESA28017648

=(IF(".";"MID(cell;2;7))")) does not work obviousbly because the line
only starts with a dot. How do I put this in the IF formula? That
instead of bigger than or smaller than or =, one for it starts
with........

Who knows???? I can not seem to figure it out and it has been taking up
a lot of my time to get it right...

I really hope someone can help me!


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default HELP! How to put an IF formula with "starts with" instead of bigge

Is there an instance where the line starts with multiple dots or commas
?(e.g. ...,,,MADZBIBCGDCACDAC)
and u want to get only the 2nd upto 7th Letter = 6 Letters
(e.g. ADZBIB)

OR

your data is strictly either of the two instances? (e.g.)
1) .MADZBIBCGDCACDAC (formula result is ADZBIB)
2) MADZBIBCGDCACDAC (formula result is Blank cell "")

please clarify a little.


"debbedeb" wrote:

Hi,
I have the following data (x200 with all a different information that I
want to have an IF formula in the colomn next to the specific data when
if there is for instance for the line that says .MADZBIB that I want
only Excel to take the MID(cell;2ndletter till the 7nd letter) but ONLY
if the line starts with a dot (.) and for the ones that do not start
with a dot I want to Excel to do nothing. After that I want Excel to
place the first 7 digits after the dot in the cell.

The input:
Message is displayed from SITA archiv: 6353636 08.11.2006 01:05:23
QD HAMBI7X
..MADZBIB 072349 NOV06/AGNT9999/PID43007
#CAM
S1BOOKED/IBM/D4296/USD/1/
441/48011057301/D5331034701200/1/EA/2790.00/08116/MFR FAPE3/PRI AOG/
ACN 1027/PKG 0/VRN ESA28017648

=(IF(".";"MID(cell;2;7))")) does not work obviousbly because the line
only starts with a dot. How do I put this in the IF formula? That
instead of bigger than or smaller than or =, one for it starts
with........

Who knows???? I can not seem to figure it out and it has been taking up
a lot of my time to get it right...

I really hope someone can help me!


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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
If the result of a formula is negative make equal to zero Nrippe New Users to Excel 5 June 12th 06 10:39 PM
formula to workout equal to or greater than wheelie Excel Worksheet Functions 1 April 1st 06 01:09 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM


All times are GMT +1. The time now is 08:19 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"