Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Changing Value of Cells

I want to change the value of cell D3 based on the value of the 10 position
of C3. If C3 is a "1" I want to put the word "UP" if not I want to put the
word "Down. I tried this

If (Mid(C3, 10, 1)) = "1" Then
D3 = "U"
Else
D3 = "D"
End If

Should I enter something into the cell directly and not use VBA?
What command should I use? Is there a book that explans the key words and
what they do and how to use them??

Thanks in Advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Changing Value of Cells

Try

If (Mid(Range("C3").Value, 10, 1)) = "1" Then
Range("D3").Value = "U"
Else
Range("D3").Value = "D"
End If

You could use a formula in D3:

=IF(MID(C3,10,1)="1","U","D")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"williamr" wrote in message
...
I want to change the value of cell D3 based on the value of the
10 position
of C3. If C3 is a "1" I want to put the word "UP" if not I
want to put the
word "Down. I tried this

If (Mid(C3, 10, 1)) = "1" Then
D3 = "U"
Else
D3 = "D"
End If

Should I enter something into the cell directly and not use
VBA?
What command should I use? Is there a book that explans the
key words and
what they do and how to use them??

Thanks in Advance



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
Adjustable Cells (Changing Cells) Limit - Solver Marcio Excel Discussion (Misc queries) 0 April 7th 08 04:41 PM
changing all cells jeremy via OfficeKB.com New Users to Excel 3 June 6th 05 07:40 PM
Changing Cells LS Steakhouse Excel Programming 3 March 8th 05 06:39 PM
changing cells Jean-Paul De WInter Excel Programming 5 September 9th 04 04:30 PM
Changing Cells, How to Mac Lingo[_2_] Excel Programming 7 August 3rd 04 11:27 PM


All times are GMT +1. The time now is 04:08 AM.

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

About Us

"It's about Microsoft Excel"