Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jaldhi Shukla
 
Posts: n/a
Default how can excel recognize strikethrough?

I am preparing an ACCESS table using apend query from a excel worksheet. I
identify deleted data in excel worksheet by striking through it rather than
completely deleting it.

But i do not want this striked through data to come to access table. is
there a way in which i can automatically do this? or can i set up excel to
return me any specific character in one cell to indicate that that row is
deleted. so i can inturn use that in access.

Thanks
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Here's a possibility....

Assume you have a data range from A1:A10 and some cells have been formatted
with a stike through.

Create this named formula:

Goto InsertNameDefine
Name: IsStike
Refers to: =GET.CELL(23,INDIRECT("RC[-1]",FALSE)

In a helper coulumn, column B, enter this formula and copy down to B10:

=IsStrike

This will return either TRUE or FALSE

The Indirect function is using R1C1 reference style. In the above example
the reference is to the cell immediately to the left of the cell containing
the formula. If the data is in column A and the formula, =IsStrike, were in
column F then the reference would be:

=GET.CELL(23,INDIRECT("RC[-5]",FALSE)

Which basically means offset the cell that contains the formula by zero rows
and 5 columns to the left.

A VBA UDF would be much better but someone that can write one would need to
respond. In the meantime, this will work.

Biff

"Jaldhi Shukla" <Jaldhi wrote in message
...
I am preparing an ACCESS table using apend query from a excel worksheet. I
identify deleted data in excel worksheet by striking through it rather
than
completely deleting it.

But i do not want this striked through data to come to access table. is
there a way in which i can automatically do this? or can i set up excel to
return me any specific character in one cell to indicate that that row is
deleted. so i can inturn use that in access.

Thanks



  #3   Report Post  
Biff
 
Posts: n/a
Default

Note: that GET.CELL method is testing the cell FORMAT. If you had a cell
formatted with strike through the =IsStrike formula will return TRUE even if
there was no value in the cell because it's testing the FORMAT and not the
contents.

Biff

"Biff" wrote in message
...
Hi!

Here's a possibility....

Assume you have a data range from A1:A10 and some cells have been
formatted with a stike through.

Create this named formula:

Goto InsertNameDefine
Name: IsStike
Refers to: =GET.CELL(23,INDIRECT("RC[-1]",FALSE)

In a helper coulumn, column B, enter this formula and copy down to B10:

=IsStrike

This will return either TRUE or FALSE

The Indirect function is using R1C1 reference style. In the above example
the reference is to the cell immediately to the left of the cell
containing the formula. If the data is in column A and the formula,
=IsStrike, were in column F then the reference would be:

=GET.CELL(23,INDIRECT("RC[-5]",FALSE)

Which basically means offset the cell that contains the formula by zero
rows and 5 columns to the left.

A VBA UDF would be much better but someone that can write one would need
to respond. In the meantime, this will work.

Biff

"Jaldhi Shukla" <Jaldhi wrote in message
...
I am preparing an ACCESS table using apend query from a excel worksheet. I
identify deleted data in excel worksheet by striking through it rather
than
completely deleting it.

But i do not want this striked through data to come to access table. is
there a way in which i can automatically do this? or can i set up excel
to
return me any specific character in one cell to indicate that that row is
deleted. so i can inturn use that in access.

Thanks





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
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
enable Excel to recognize Cell Colors Scarface Excel Worksheet Functions 2 May 18th 05 07:55 PM
Excel Files Acting Weird Anat Excel Discussion (Misc queries) 0 March 29th 05 03:07 AM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


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