Computing.Net > Forums > Windows 95/98 > Excel Macro Problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Excel Macro Problem

Reply to Message Icon

Name: Randall Ruiz C.
Date: August 10, 2000 at 13:41:26 Pacific
Comment:

I have 4 Columns with thats information

A B C D
56 blank 950001 56
56 950002 57
57 950003 58
58 950004 60

that macro have to search in column D the code and compare with column A, if exist then column C = B, for example:

A B C D
56 950001 950001 56
56 950001 950002 57
56 950001 950003 58
57 950004 59
and if not exist then "*******" in column B, for example,

A B C D
56 950001 950001 56
56 950001 950002 57
57 950002 950003 60
58 ******* 950004 61
58 ******* 950005 62

Please, somebody know how can I do That????
I apreciate your colaboration...



Sponsored Link
Ads by Google

Response Number 1
Name: Barky
Date: August 10, 2000 at 17:18:31 Pacific
Reply:

IN B
=IF(G11=TRUE,D11,"*******")
=IF(G12=TRUE,D12,"*******")
=IF(G13=TRUE,D13,"*******")
=IF(G14=TRUE,D14,"*******")
=IF(G15=TRUE,D15,"*******")
In E
=VLOOKUP(E11,B11:D15,1,FALSE)
=VLOOKUP(E12,B12:D16,1,FALSE)
=VLOOKUP(E13,B13:D17,1,FALSE)
=VLOOKUP(E14,B14:D18,1,FALSE)
=VLOOKUP(E15,B15:D19,1,FALSE)
In F
=ISNUMBER(F11)
=ISNUMBER(F12)
=ISNUMBER(F13)
=ISNUMBER(F14)
=ISNUMBER(F15)
For
56 950001 950001 56 56 TRUE
56 950002 950002 57 57 TRUE
57 ******* 950003 60 #N/A FALSE
58 ******* 950004 61 #N/A FALSE
58 ******* 950005 62 #N/A FALSE


0

Response Number 2
Name: amethyst
Date: August 11, 2000 at 08:58:21 Pacific
Reply:

Maybe it's because it's late and I'm tired but your examples don't seem to match your descriptions of what you want to do.

My interpretation is: you have a mixture of three and four column data.
If it is three column, you want to move B & C to C & D and make B=*******.
If it is in four column format you say C=B but most of your examples don't do this. In your first example B is blank so C=B would give you two blanks. You say "compare" D with A but you don't say why, just "if exist".

What version of Excel are you using?

amethyst


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


vtpciirq.pci pci.dll Premiere and Matrox Marve...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Excel Macro Problem

Excel macro problem www.computing.net/answers/windows-95/excel-macro-problem/4799.html

Excel Macro to delete rows of text? www.computing.net/answers/windows-95/excel-macro-to-delete-rows-of-text/139136.html

Excel macro www.computing.net/answers/windows-95/excel-macro/42410.html