Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Fun newbie stuff

Howdy, boys and girls...

This is my first venture into VB programming in Excel, and I think i
is safe to say i'm a novice at the whole VB programming dealy-o.

That said,

I have a program that should be a fairly straightforward translation t
use in excel but I don't exactly know the best approach... that being
Macro? VB? export to Access and do it there? Here is my desi

I have a field in an excel spreadsheet that I need to check and chang
the value of for each row, depending on the content in certain othe
fields in that row. For example, here is the code I am trying t
convert:

IF PPO EQ 'R' THEN 'REV' ELSE
IF PROCDATEA GE '200107' AND ADJCODE EQ '1' OR '3'
AND CHARGES LT .00 THEN 'REV' ELSE
IF PROCDATEA GE '200107' AND ADJCODE EQ '1' OR '3'
AND CHARGES GE .00 THEN 'NEW' ELSE

IF PROCDATEA GE '200107' AND ADJCODE EQ '4'
AND CHARGES GE .00 THEN 'REV' ELSE

IF PROCDATEA GE '200107' AND ADJCODE EQ '4'
AND CHARGES LT .00 THEN 'NEW' ELSE

IF PROCDATEA LT '200107' AND ADJCODE EQ '0' OR '3'
AND CHARGES LT .00 THEN 'REV' ELSE

IF PROCDATEA LT '200107' AND ADJCODE EQ '0' OR '3'
AND CHARGES GE .00 THEN 'NEW' ELSE

IF PROCDATEA LT '200107' AND ADJCODE EQ '1'
AND CHARGES GE .00 THEN 'REV' ELSE

IF PROCDATEA LT '200107' AND ADJCODE EQ '1'
AND CHARGES LE .00 THEN 'NEW' ELSE

IF CHARGES GE .00 THEN 'NEW' ELSE 'REV

where "PROCDATEA", "ADJCODE", CHARGES" etc are all column headers.

I would need this function to check every line in the spreadsheet...

Should I translate this into a formula? A macro? hmmmmm? If a formula
could you provide a gentle prodding in the correct formatting?

thanks in advance for your suggestions..

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Fun newbie stuff

Figured out an approach different than this...

Thanks anyway

--
Message posted from http://www.ExcelForum.com

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
Need a help icon and stuff. Autumn New Users to Excel 1 April 8th 08 10:45 PM
Baby stuff I know-if Joe Excel Discussion (Misc queries) 8 November 16th 07 10:27 AM
Real Newbie newbie question Dave New Users to Excel 0 January 10th 07 07:55 PM
update stuff comes at the top Fam via OfficeKB.com Excel Discussion (Misc queries) 0 April 6th 06 09:32 PM
Highlight the bad stuff help!! John[_55_] Excel Programming 2 November 6th 03 08:58 PM


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