When I select a value in a cell I want it to update other information in side the spreadsheet

HI All

Stage 1 RED
I have a spread sheet that calculates gas usage and then creates a invoice.  When I select the meter number which is controlled by data validation I want it to update the flat number B11 from "a4 Sub meters",  Name B10 from b4 Sub Meters , Tenant Code e7 from c4 sub meters.

Stage 2 BLUE

When I enter the  value for "period to" on the invoice I would like it to update "Meter Reading d17 from N4 Sub Meters",  "Units Used from N22 Sub Meters" , "Kilowatts Used f17 from N40 Sub Meters" and "Cost G17 from R59 sub meters".

Hope that makes sense


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob HensonFinance AnalystCommented:
Stage 1:
Formulas as follows:

Name in B10 =INDEX('Sub Meters'!$A$3:$N$17,MATCH($A$17,'Sub Meters'!$E$3:$E$17,0),2)
Flat number in B11 ="Flat "&INDEX('Sub Meters'!$A$3:$N$17,MATCH($A$17,'Sub Meters'!$E$3:$E$17,0),1)
Tenant/Customer ID in E7 =INDEX('Sub Meters'!$A$3:$N$17,MATCH($A$17,'Sub Meters'!$E$3:$E$17,0),3)

You will notice that these are pretty much the same apart from the last digit.

These use the INDEX function and area A3:N17 on the Sub Meters sheet and return the value from the column specified in that last digit; name column 2, Flat column 1, ID column 3.

Rob H

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob HensonFinance AnalystCommented:
Carrying on win same vain with Stage 2:

Meter Reading D17 =INDEX('Sub Meters'!$A$3:$V$17,MATCH($A17,'Sub Meters'!$E$3:$E$17,0),MATCH($C$17,'Sub Meters'!$A$3:$V$3,0))

This uses a second MATCH function with the date to get the correct column from the meter readings.

Units used =INDEX('Sub Meters'!A21:V36,MATCH(A17,'Sub Meters'!E21:E36,0),MATCH(C17,'Sub Meters'!A21:V21,0))

Same function as above but from a different table/range.

Kilowatts Used - can't see where you are putting this but will no doubt be able to adjust one of the other formulas.

Cost in F17 =INDEX('Sub Meters'!A58:U73,MATCH(A17,'Sub Meters'!E58:E73,0),18)

Rob H
cybersiAuthor Commented:
Hi Rob

That's crazy quick but thank you.  I will put them in the cells now and see how I get on.


cybersiAuthor Commented:
Absolutely Brilliant!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.