A compound for further improving the capability of an organic EL device, an organic electroluminescent device having a further improved device capability, and an electronic device including such an organic electroluminescent device, in which the compound has formula (1):wherein N*, *a1, *a3, *b1, m, n, R1A to R5A, R1B to R5B, R11B to R14B, R21A to R25A, R21B to R24B, L, Ar1, Ar2, and Ar3 are as defined in the description, the organic electroluminescent device is an organic electroluminescent device including the compound, and the electronic device is an electronic device including such an organic electroluminescent device.