Re: Update Sheet1
- From: "Rob Hick" <rob.hick@xxxxxxxxxx>
- Date: 15 Jun 2006 03:01:08 -0700
No, you need to put the function in a new cell because it needs to
reference both the old price and the new price. It seems strange that
you have no room on Sheet1 - you could always insert a new column if
the current one has some data in. Failing that you will have to insert
a new sheet and put references to the original cells on Sheet1.
You can colour code those cells that have changed by using 'conditional
formatting' from the Format menu. It's a bit difficult to explain
exactly what to do in this post but if you have a look in Excel Help,
there is a fairly comprehensive guide.
Rob
Steve wrote:
Thank you Rob,
problem is that I do not have space for another column in *** 1, can I
with this function replace old Price
with new one from *** 2 and is there a way to change colour of cell which
has changed Price?
thank you in advance,
"Rob Hick" <rob.hick@xxxxxxxxxx> wrote in message
news:1150117223.196197.120500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I wouldn't bother using VB - just use a formula to display the result
in a new column next to the original price column, i.e:
Reference Number Description Price/Eur New Price/Eur
In the new column put a formula to lookup the value from sheet2. I'd
suggest the easiest formula would be a VLOOKUP(), e.g. in cell D2 put:
=VLOOKUP(A2,Sheet3!A1:C3,3,FALSE)
(see Excel Help for more about the function)
If the formula doesn't find a match then it will return #N/A, but you
could use the ISNA() function to capture that and put the original
price in its place, or something else, e.g.
=IF(ISNA(VLOOKUP(A2,Sheet3!A1:C3,3,FALSE)),C2,VLOOKUP(A2,Sheet3!A1:C3,3,FALSE))
Steve wrote:
Hello everyone,
I have already made Microsoft Access databases but now I need to make
one
small VB program in Excel.
I have 2 Sheets.
In *** 1 I have 3 columns like this:
Reference number Description Price/Eur
689023 Socket 2,45
23489 Plug 0,98
There is a lot of reference numbers (cca 8 000).
In *** 2 I have table just like this but with different Prices and
small
number of
referent numbers (cca 200).
How can I make VB code which will find all Referent numbers from *** 2
in
*** 1 and put new Price from
*** 2 to *** 1?
thank you in advance,
.
- Follow-Ups:
- Re: Update Sheet1
- From: Steve
- Re: Update Sheet1
- References:
- Update Sheet1
- From: Steve
- Re: Update Sheet1
- From: Rob Hick
- Re: Update Sheet1
- From: Steve
- Update Sheet1
- Prev by Date: how to see only youre userforms??
- Next by Date: RE: Disable Cell and take out Data Validation
- Previous by thread: Re: Update Sheet1
- Next by thread: Re: Update Sheet1
- Index(es):