If A2=A1, make B2=B1

rpsales

New Member
Joined
Apr 14, 2016
Messages
4
I spent a good bit searching for this answer before I posted, I didn't want to ask something already answered, but I couldn't find the answer anywhere (probably not using the right search terms).

I fill out spreadsheets a lot with duplicate information, such as phone numbers. I want an IF formula that if the company name (A2) is the same as the company name (A1), then the phone number in B2 be the same as the one entered in B1. If it's not the same, then obviously I'll enter a new one. Is this possible?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Do you have an excel list of all the company names and phone numbers? You need this original list.

You can use a remove duplicates function to get this original list.

Then you can use a vlookup formula on the section that gets duplicated to just have it fill with the correct phone number.
 
Upvote 0
I think you are best using a VLOOKUP formula rather than IF statements. Put your telephone address book on a separate sheet and then add to it as new names and numbers arise. If you give the address book range a name you can expand the book without having to change your formulas.
 
Last edited:
Upvote 0

Looks like this:

Call Log
Company NameContact NamePositionNumberExt.ReachedOutcomeLast Call
Barnes & NobleBrad FeuerVP, GC and CS(212) 633-3300 No 4/14/16
Barnes & NobleTeri RodriguezAGC(212) 633-33006109No61094/14/16
Under ArmourJohn StantonSVP, GC and CS(410) 454-6428 No 4/14/16
Under ArmourKristen HerberSr. Couns., Lit(410) 454-6428 No 4/14/16

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
I'm filling the information out myself. I look up companies of interest and just put them here for a call log. No larger database or anything. Just google and wikipedia.
 
Upvote 0
If you do not wish to using vba then you are faced with the fact that a cell cannot hold both a formula and text at the same time.

However you may be happy to populate D with the formula below which will populate any consecutive duplicates or prompt for a manual entry.
You will then be left with a mix of formulas and text but you could eventually do a Cop >> Paste Special >> Values to commit all to hard data.
Excel Workbook
ABCDEFGH
1Company NameContact NamePositionNumberExt.ReachedOutcomeLast Call
2A CompanyEnter Number
3Barnes & NobleBrad FeuerVP, GC and CS(212) 633-3300No4/14/16
4Barnes & NobleTeri RodriguezAGC(212) 633-33006109No61094/14/16
5Under ArmourJohn StantonSVP, GC and CS(410) 454-6428No4/14/16
6Under ArmourKristen HerberSr. Couns., Lit(410) 454-6428No4/14/16
7B CompanyEnter Number
8
Sheet1



Hope that helps.
 
Last edited:
Upvote 0
Tony, thank you so much. That was exactly what I wanted. I was expecting to have to enter a new number eventually, I just wanted it to copy above data if the company stayed the same.
 
Upvote 0

Forum statistics

Threads
1,215,267
Messages
6,123,964
Members
449,137
Latest member
yeti1016

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top