Office & Productivity Software forum

General discussion

Multiple indexs in one cell formula

by Slasher / September 3, 2005 10:52 PM PDT

I'm trying to do a Invoice thing where it calles information from a database of addresses. The basic way of doing this is


But is there any way of having more than one index in one cell?

e.g. =INDEX(Addresses,$M$1,7)INDEX(Addresses,$M$1,6)

^^that doesn't work but you get the idea.I've tried putting each index in it's own brackets and putting a comma after each one, but neither methods are successful. Any ideas? btw I use Excel 2002.

Discussion is locked
You are posting a reply to: Multiple indexs in one cell formula
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Multiple indexs in one cell formula
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
(NT) (NT) Sorry, I don't get the idea. Please elaborate.
by Kees Bakker / September 4, 2005 12:29 AM PDT
Collapse -
by Slasher / September 4, 2005 1:12 AM PDT

ok. say if you had a database and two of the fields were "title" (like Mr. Mrs.) and "Surname" (like Smith). I wanted a cell on the Invoice to have the name of the person it was going to be sent to (e.g. Mr. Smith). To do that I would need to have 2 index formulas in the same cell. How do you do that?

Collapse -
Use the string concatenation operator in between.
by Kees Bakker / September 4, 2005 5:25 AM PDT
In reply to: explanation...

It's &.

So "A" & "B" = "AB".
And "Mr." & " " & "Smith" is "Mr. Smith" (note the space, which is a character on its own.

So your formula is something like =index(...) & " " & index (...). Easy enough, once you know it.

It's like: how do I get to sqrt (sqare roots) in a formula. Use the + or - then (that's a numerical operator, used between numbers):
=sqrt(5)-sqrt(5) will be approximately 0.

Hope this helps.


Collapse -
(NT) (NT) thank you it works perfectly! :)
by Slasher / September 4, 2005 4:17 PM PDT
Collapse -
(NT) (NT) You're welcome.
by Kees Bakker / September 4, 2005 5:12 PM PDT
Popular Forums
Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?