Hi, just wondering is it possible to create a loop for this formula?
Formula:Please Login or Register to view this content.
Basically its in every cell, I add 1 to C, so it keeps going, C6, C7, C8, C9, etc?
Hi, just wondering is it possible to create a loop for this formula?
Formula:Please Login or Register to view this content.
Basically its in every cell, I add 1 to C, so it keeps going, C6, C7, C8, C9, etc?
Not sure what you want - is this it?
Please Login or Register to view this content.
If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)
You can't do one thing. XLAdept
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin
I don't understand what you mean by a "loop". However, the formula:
Formula:Please Login or Register to view this content.
in sheet1 will get the row number of the value in column B of sheet1 that matches sheet2, A2 and create the address Cn
and multiply the sheet2, B2 number by what's in Cn
or this one (preferred):
Formula:Please Login or Register to view this content.
Last edited by protonLeah; 07-03-2012 at 12:21 AM.
Ben Van Johnson
thanks for the quick reply guys
attached is my excel file
https://dl.dropbox.com/u/48832745/test1.xlsx
Basically I want to create a formula that I can just drag it down to the next row.
What I did is I created a simple drop down options, it shows the different products, if I select "Product 1", the price reflecting to Product 1's should display.
I cant simply copy the formula it wouldnt work since A2 is always fixed to A2. Any suggestions?
Hi
Do you mean something like this?
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
Try with this formula in cell E3:
=INDEX(Sheet2!$B$2:$B$9;MATCH($B3;Sheet2!$A$2:$A$9;0))*$C3
and copy down
//Ola
Going by your original post, you just need a couple of $'s in your formula:
=IF(B3=Sheet2!A$2,C3*Sheet2!B$2
(and complete the rest of the formula) and drag down
The $ locks the row references so that the A2 and B2 will stay the same when you drag down. That is called "absolute referencing".
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks